Components
Select
A native dropdown select styled to match the design system. Supports labels, hint/error states, and disabled options.
Basic usage
Pass an options array and optional placeholder.
States
Hint, error, and disabled states work identically to the Input component.
Choose your primary region.
Please select a country.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
optionsrequired | SelectOption[] | — | Array of { value, label, disabled? } objects. |
label | string | — | Label text displayed above the select. |
placeholder | string | — | Placeholder shown when no value is selected. |
error | string | — | Error message displayed below. Adds red styling. |
hint | string | — | Helper text displayed below (hidden when error present). |
...rest | SelectHTMLAttributes | — | All native select props are forwarded. |
Accessibility
- Uses native
<select>for built-in keyboard support. - Label is associated via
htmlFor. aria-invalidis set when error is present.- Hint/error linked with
aria-describedby.