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