Label
No consumersThe text that names a field and puts the browser's click target on it.
A styled label element and nothing more. Its value is the htmlFor pairing: it names the field for assistive technology and makes the text itself a click target, which matters most for the small controls — checkboxes, radios, switches.
With a control
Props
Label
| Prop | Type | Default | Description |
|---|---|---|---|
…LabelHTMLAttributes | LabelHTMLAttributes<HTMLLabelElement> | — | Every native label attribute, `htmlFor` above all. |