Back

Select

Select components allow users to choose from a list of options. Built on Radix UI primitives for full accessibility support.

Basic Usage

Simple select

Basic dropdown selection

Sizes

Default size

Standard trigger height (36px)

Small size

Compact trigger height (32px)

With Groups

Grouped options

Organize options into labeled groups

With Icons

Items with icons

Visual indicators for each option

States

Disabled

Non-interactive select

With disabled item

Individual option disabled

SelectTrigger Props

PropTypeDefaultDescription
size"sm" | "default""default"The size of the trigger button
placeholderstringPlaceholder text when no value is selected

Sub-components

PropTypeDefaultDescription
SelectSelectPrimitive.RootRoot component managing state
SelectTriggerSelectPrimitive.Trigger & { size }The button that toggles the dropdown
SelectValueSelectPrimitive.ValueDisplays the selected value
SelectContentSelectPrimitive.ContentThe dropdown container
SelectItemSelectPrimitive.ItemIndividual selectable option
SelectGroupSelectPrimitive.GroupGroup of related items
SelectLabelSelectPrimitive.LabelLabel for a group
SelectSeparatorSelectPrimitive.SeparatorVisual divider between items