Forms
Select
stablePick one option from a list, with typeahead and sections.
since v1.23.8 kB gzip
Preview
Framework
Installation
npx @strata/cli add selectUsage
import { Select, SelectItem } from "@/components/strata";
<Select label="Framework" defaultSelectedKey="vite">
<SelectItem id="vite">Vite</SelectItem>
<SelectItem id="next">Next.js</SelectItem>
</Select>Props
| Prop | Type | Default |
|---|---|---|
labelVisible label. | ReactNode | — |
selectedKeyControlled value. | Key | null | — |
onSelectionChangeCalled when the user picks an option. | (key: Key) => void | — |
placeholderShown when empty. | string | "Select an option" |
isDisabledPrevents interaction and dims the control. | boolean | false |
Accessibility
Related
Text field
Single-line input with label, description, validation and adornments.
Checkbox
Binary choice with indeterminate state and grouped variants.
Switch
Instant on/off setting, typically in settings lists.
Slider
Choose a value or range along a track, with steps and output.
Was this page helpful?
Documented since v1.2 · components/select.mdx