Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Select

Pick one option from a list. Keyboard typeahead, groups, and a popper that animates in the style's motion.

$ pnpm dlx shadcn@latest add @dumb/select

Needs the @dumb registry in components.json and the style tokens. See Installation.

import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/components/ui/select"
<Select>
  <SelectTrigger className="w-48">
    <SelectValue placeholder="Region" />
  </SelectTrigger>
  <SelectContent>
    <SelectItem value="fra">Frankfurt</SelectItem>
    <SelectItem value="bom">Mumbai</SelectItem>
  </SelectContent>
</Select>

Groups

Labelled groups with separators.

API reference

Matches shadcn/ui. Native props are forwarded.

SelectTrigger

PropTypeDefault
size"default" | "sm"

Trigger height.

"default"

SelectContent

PropTypeDefault
position"popper" | "item-aligned"

Popper anchors below the trigger; item-aligned overlays it like macOS.

"popper"
SpaceEnter
Opens the list, or selects the focused item.
ArrowUpArrowDown
Moves between items.
Esc
Closes the list.
A to Z
Typeahead to matching item.