Dropdown menu

A button that opens a floating menu that tilts in from the trigger. Follows the menu button pattern with full keyboard support and focus return.

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

DropdownMenu3D props

PropTypeDefaultDescription
itemsMenuItem[]The items in the menu.
onSelect(id: string) => voidCalled with the id of the chosen item.
childrenReactNodeContent of the trigger button.
align"start" | "end""start"Which edge of the trigger the menu lines up with.
aria-labelstring"Menu"Accessible name of the menu.
classNamestringExtra classes added to the trigger button.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks