Label
componentThe name of a form control.
Preview
Code
<twig:Label for="email">Email</twig:Label>
Code
<twig:Label for="email">Email</twig:Label>
Installation
php bin/console ux:install label --kit=github.com/parler-haut-interagir-librement/ux-kit
Files to copy
templates/components/Label.html.twig
<label data-slot="{{ attributes.render('data-slot')|default('label') }}"{{ attributes }}>
{##- The label text for a form control. -#}
{%- block content %}{% endblock -%}
</label>