Skip to Content
ComponentsSelect

Select

Accessible select menu with groups, separators, and a fully custom trigger element.

Preview

Anatomy

import { Select } from '@wire-ui/react' <Select.Root value={value} onValueChange={setValue}> <Select.Trigger> <Select.Value placeholder="Pick an option" /> </Select.Trigger> <Select.Content> <Select.Group> <Select.GroupLabel>Group name</Select.GroupLabel> <Select.Item value="a">Option A</Select.Item> <Select.Item value="b">Option B</Select.Item> </Select.Group> <Select.Separator /> <Select.Item value="c">Option C</Select.Item> </Select.Content> </Select.Root>

Root props

PropTypeDefaultDescription
valuestringControlled selected value
defaultValuestringInitial value for uncontrolled use
onValueChange(value: string) => voidCalled when selection changes
disabledbooleanfalseDisables the select

Item props

PropTypeDescription
valuestringThe value this item represents
disabledbooleanDisables this specific item

Item data attributes

AttributeWhen present
data-selectedThis item is currently selected
data-disabledItem is disabled
Last updated on

MIT License © 2026 wire-ui