Atelier UI

Search components…

Search components…

Dropdown Menu

Dropdown menu with labels, checkbox items, shortcuts, destructive actions and typeahead.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

DropdownMenuProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
trigger* requiredReact.ReactNode—Content of the trigger button
items* requiredMenuEntry[]——
align"start" | "end""start"—
widthnumber224Width of the menu in px
triggerClassNamestring——
defaultOpenbooleanfalseRender the menu open on mount (without moving focus)

Install

$ npx shadcn@latest add https://chromotion.dev/r/dropdown-menu.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this