Select
Markdown for agentsAccessible select primitive built on the native select element with controlled and uncontrolled modes.
npx slipstream-ui@latest add selectPlayground
Selected: default
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 | (value: string) => void | — | Selection change handler |
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