Command Palette

Search for a command to run...

Select

Displays a list of options for the user to pick from — triggered by a button.

Installation

pnpm dlx shadcn@latest add https://dga-registry.vercel.app/r/select.json

Basic Select

Simple select examples with different options and disabled state.

Select Sizes

Different size variants of the select component.

Grouped Select

Select with grouped options, labels, and separators.

Select with Icons

Select items with icon prefixes.

Controlled Select

Select with controlled state and value display.

Form Examples

Real-world form scenarios using the Select component.

Station Configuration

Data Query

Width Variations

Select with different width configurations.

Props

Select

PropTypeDefaultDescription
defaultValuestringThe default selected value
valuestringControlled selected value
onValueChange(value: string) => voidCallback when value changes
disabledbooleanfalseDisables the select

SelectTrigger

PropTypeDefaultDescription
size"default" | "sm""default"Size variant
classNamestringAdditional CSS classes

SelectItem

PropTypeDefaultDescription
valuestringThe value of the item
disabledbooleanfalseDisables this item
childrenReactNodeItem content (text, icons)