Label
An accessible label for form controls. For full fields with description and error text, prefer Field and FieldLabel.
Basic
Associate a label with a control via htmlFor and matching id.
Installation
CLI
Usage
label.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| htmlFor | string | — | Id of the labeled control. |
| className | string | — | Merge extra Tailwind classes on the label. |