Label
Accessible form label that associates with its control.
npx @slipstream-ui/cli@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.
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.