Label
Markdown for agentsAccessible form label that associates with its control.
npx slipstream-ui@latest add labelUsage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| htmlFor | string | — | The id of the control this label describes. |
| children | ReactNode | — | The label text. |
Accessibility
- htmlFor/id pairing links the label to its control.
- Placeholders are not a replacement for labels.