Select

A custom dropdown whose menu tips open like a lid. Arrow keys, type-ahead and Escape work, and it opens upward when there is no room below.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Select3D props

PropTypeDefaultDescription
optionsSelectOption[]Choices in the dropdown, each with a value and label.
valuestringSelected value when controlled.
defaultValuestringStarting value when uncontrolled.
onValueChange(value: string) => voidCalled with the new value when an option is picked.
placeholderstring"Select…"Text shown when nothing is selected.
disabledbooleanTurns off interaction when true.
namestringWhen set, a hidden input is rendered so the value posts with a form.
aria-labelstringRequired: names the select for screen readers.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks