<div class="form-field ">
<label class="label " for="">
Text label
</label>
<button type="button" class="button ">
</button>
</div>
{{#embed "@form-field" }}
{{#content "content"}}
{{> @button }}
{{/content}}
{{/embed}}
{
"label": {
"text": "Text label",
"input-id": "text-id"
},
"input": {
"type": "text",
"name": "text-input",
"id": "text-id",
"placeholder": "Insert text"
}
}
.form-field {
&__label {
display: block;
margin-bottom: 5px;
}
& + .form-field {
margin-top: 20px;
}
& + .button {
margin-top: 20px;
align-self: flex-start;
}
}
There are no notes for this item.