Label
Displays an accessible label for a form control, styled to match SevenUI inputs, checkboxes, and switches, and used inside Field.
Installation
Bash
Usage
API reference
Label
Extends the native <label> element. It dims automatically when its
control is disabled — both as a sibling after the control
(peer-disabled) and with the control nested inside
(has-[:disabled]). Prefer the sibling pattern with htmlFor. Base UI
ships no Label primitive; inside a Field, use
FieldLabel for automatic wiring instead.
| Prop | Type | Default |
|---|---|---|
htmlFor | string — or nest the control inside instead | — |