Created
May 15, 2018 15:26
-
-
Save mattrayner/c47f46020731ddb9b06c6b98bd33ecea to your computer and use it in GitHub Desktop.
List Component JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<{data.kind} class="list--{data.display}"> | |
{#items} | |
<li> | |
{>"components__{name}" name=name data=data/} | |
</li> | |
{/items} | |
</ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "list", | |
"data": { | |
"type": "ol", // Allows both ol and ul | |
"display": "block", // Allows block, pipe, etc. | |
"items": [ | |
{ | |
"name": "card", | |
"data": { "foo": "bar" } | |
}, | |
{ | |
"name": "card", | |
"data": { "foo": "baz" } | |
}, | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment