Select
Accessible select primitive built on the native select element with controlled and uncontrolled modes.
npx @slipstream-ui/cli@latest add selectPlayground
Selected: default
Groups, placeholder and multi-select
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| options | SelectOption[] | required | { value, label, disabled? } entries |
| label | string | — | Visible, associated label |
| value | string | — | Controlled selected value |
| defaultValue | string | — | Uncontrolled initial value |
| onChange | React.ChangeEventHandler<HTMLSelectElement> | - | Native change event; compatible with react-hook-form register() |
| onValueChange | (value: string | string[]) => void | - | Value-based callback for controlled usage |
Accessibility
- Built on the native select: full keyboard, screen-reader and mobile support
- Visible labels are associated via htmlFor/id; aria-label is forwarded otherwise
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.