Select

A composable single-select with the kit's compact mono trigger. Compose SelectTrigger (wrapping a SelectValue) with a SelectContent of SelectItems, optionally grouped via SelectGroup / SelectLabel. The panel flips and shifts to stay within the viewport, supports keyboard list navigation and typeahead, and matches the trigger width.

Props

Select

PropTypeDefaultDescription
valuestringControlled selected value.
defaultValuestringInitial value when uncontrolled.
onValueChange(value: string) => voidFired when the selection changes.
open / onOpenChangeControlled open state.
defaultOpenbooleanfalseInitial open state when uncontrolled.

SelectValue takes a placeholder. SelectItem takes value and disabled. SelectTrigger accepts asChild and an icon (a leading ReactNode rendered before the value).