Search

Search components and blocks

Sign in

Morph Select

Pro

A select where the trigger itself morphs into the option list: one surface grows from button to a grouped, scrollable menu. Arrow keys, Enter, Escape and type-ahead work from the trigger. Options stagger in, a single highlight slides between them, and the chevron and checkmark spring.

pnpm dlx shadcn@latest add @ditherui/morph-select

Europe

Frankfurt

Americas

Virginia

Asia

Singapore

Europe

Frankfurt

Americas

Virginia

Asia

Singapore

Props

options{ label: string; value: string; group?: string; description?: string; icon?: ReactNode }[]—
valuestring—
defaultValuestring—
onValueChange(value: string) => void—
placeholderstring"Select..."
openWidthnumber300
align"start" | "end""start"
classNamestring—

When to use the morph select

Use it when you want a select whose trigger morphs into the option list. One surface grows from the button to a grouped, scrollable menu.

  • Open the CLI tab on any preview above for the exact shadcn command. The source is copied into your project, so you can edit it like any other file.