Created
May 15, 2018 15:17
-
-
Save mattrayner/a697616fd95fa4dd9919797d5cb578a2 to your computer and use it in GitHub Desktop.
Card 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
<div class="card"> | |
<div class="card__details"> | |
{#data.components} | |
{>"components__{name}" name=name data=data/} | |
{/data.components} | |
</div> | |
</div> |
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": "card", | |
"data": { | |
"components": [ | |
{ | |
"name": "heading", | |
"data": { | |
"weight": 4, | |
"content": "<a href=\"/mps\">MPs</a>" | |
} | |
}, | |
{ | |
"name": "paragraph", | |
"data": { | |
"content": "View all current members of the House of Commons." | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment