ThiloDesign System
DV

Select

shadcn/ui

Dropdown for choosing one option from a list. Four sub-components: SelectTrigger, SelectValue, SelectContent, SelectItem.

@/components/ui/select

Variants

With custom items

Pass custom JSX as SelectItem children — works with any component

Sub-components

ComponentRole
SelectRoot wrapper — holds open/close state
SelectTriggerThe visible button that opens the dropdown
SelectValueShows the selected value or placeholder text
SelectContentThe dropdown list (rendered in a portal)
SelectItemA single option — value prop is required
SelectLabelNon-selectable group heading inside SelectContent
SelectSeparatorHorizontal divider between groups

In context — filter bar

Filter by
Compact selects use h-7 text-xs to match the toolbar height

On this page