<div class="form-field ">
<label class="label " for="">
Email label
</label>
<input class="input " type="email" name="email-input" id="email-id" placeholder="Insert e-mail" />
</div>
{{#embed "@form-field" }}
{{#content "content"}}
{{> @input--email input }}
{{/content}}
{{/embed}}
{
"label": {
"text": "Email label",
"input-id": "email-id"
},
"input": {
"type": "email",
"name": "email-input",
"id": "email-id",
"placeholder": "Insert e-mail"
}
}
.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.