Components
Select
Dropdown selection with full keyboard navigation, label, and error state.
Import
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Visible label |
options | SelectOption[] | — | Array of options |
placeholder | string | — | Placeholder option text |
hint | string | — | Helper text below the select |
error | string | — | Error message |
className | string | — | Additional CSS classes on wrapper |
...rest | SelectHTMLAttributes | — | All native select attributes |
SelectOption type
Grouped options
For grouped options, use native optgroup via the standard HTML select or the groups prop:
Disabled options
Accessibility
- Renders as native
<select>— full browser keyboard support - Arrow keys navigate options
- Enter/Space opens and selects
labelassociated viahtmlFor/iderrorassociated viaaria-describedby