<!-- Default -->
<label for="" class=" label ">Label</label>
<!-- Required -->
<label for="" class=" label -required">Label</label>
<label for="{{for}}" class="{{mixes}} label {{modifiers}}">{{{text}}}</label>
/* Default */
{
"text": "Label"
}
/* Required */
{
"text": "Label",
"modifiers": "-required"
}
.label {
display: block;
padding-bottom: 0.8rem;
&.-required {
&::after {
content: '*';
white-space: nowrap;
}
}
}
There are no notes for this item.