Skip to content

Label

component

The name of a form control.

Preview

Light

Code
<twig:Label for="email">Email</twig:Label>

Dark

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>