Label
Form field label. Connects an input through the for attribute; clicking the label focuses the matching control.
Default
Plain text label tied to an input via for/id.
With checkbox
Pair with a Checkbox so the label toggles the control.
Required
Add a required marker inside the label.
API Reference
Props, events, and slots for each sub-component.
Label
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| for | string | — | ID of the input this label belongs to. |
| class | string | — | Override typography or spacing. |