Select
NewformNative select field styled with GridNest tokens, label support, helper text, disabled state, and error feedback.
import { Select } from '@/components/forge'Preview
Select
Native select with GridNest styling.
Code Example
Props
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
options | { value: string; label: React.ReactNode; disabled?: boolean }[] | - | Yes | Options rendered inside the select |
label | React.ReactNode | - | No | Visible label above the select |
helperText | React.ReactNode | - | No | Helper text shown below the select |
error | React.ReactNode | - | No | Error message and invalid styling |
disabled | boolean | false | No | Disables interaction |
Variants
defaulterrordisabled
Accessibility
- Uses a native select element for platform keyboard support
- Label is linked to the select via htmlFor
- Error state sets aria-invalid