src/components/headline
// src/components/headline/schema.json
{
"$schema": "http://json-schema.org/draft-07/schema",
"required": [
"copy",
"type"
],
"properties": {
"copy": {
"type": "string"
},
"type": {
"type": "string"
}
}
}
// src/components/headline/mocks.json
{
"$variants": [
{
"$name": "2",
"type": "2",
"copy": "Headline 2"
},
{
"$name": "3",
"type": "3",
"copy": "Headline 3"
},
{
"$name": "4",
"type": "4",
"copy": "Headline 4"
}
]
}
// src/components/headline/index.hbs
<h{{ type }}>{{ copy }}</h{{ type }}>