Select

Displays a list of options for the user to select from, triggered by a button. Built on Radix UI Select with full keyboard navigation.

With Groups

Use SelectGroup and SelectLabel to organize items:

Disabled

Pass disabled to prevent interaction.

Installation

Props

PropTypeDefaultDescription
value
stringControlled value.
onValueChange
(value: string) => voidCallback when selection changes.
defaultValue
stringUncontrolled default value.
placeholder
stringPlaceholder text shown when no value is selected.
disabled
booleanfalseDisables the select.