← All Components

Select

Dropdown picker for choosing from a list. Built on Radix Select.

Default

Grouped Items

Disabled

Props

PropTypeDescription
defaultValuestringInitially selected value
valuestringControlled value
onValueChange(value: string) => voidChange handler
disabledbooleanDisable interaction

Sub-components

ComponentDescription
Select.TriggerButton that opens the dropdown
Select.ValueDisplays the selected value
Select.ContentDropdown content container
Select.ItemSelectable option (requires value prop)
Select.GroupGroups related items
Select.LabelNon-interactive label within a group
Select.SeparatorVisual divider between groups

Usage

<Select defaultValue="apple"> <Select.Trigger> <Select.Value placeholder="Pick a fruit" /> </Select.Trigger> <Select.Content> <Select.Item value="apple">Apple</Select.Item> <Select.Item value="banana">Banana</Select.Item> </Select.Content> </Select>