Dropdown menu

Dropdown menu is a neobrutalist React component from Cruise UI. A short list of actions behind one button, with icons, hints and a destructive item. Install it with npx shadcn@latest add @cruiseui/dropdown-menu.

Install

Terminal

npx shadcn@latest add @cruiseui/dropdown-menu

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners

When to use it

When to use

A few actions behind one button: edit, share, delete.

When not to

Choosing a value in a form (use a Select).

Props

CruiseDropdownMenu

PropTypeDefaultDescription
labelReactNode—Trigger text.
itemsCruiseMenuEntry[]——
variant?CruiseButtonVariant"secondary"—
align?"start" | "end""start"—
popupClassName?string—Extra classes on the menu, e.g. "nepa-mode" (it renders in <body>).
className?string——

Accessibility

  • role="menu" with menuitems; arrows, Home/End and typing a letter move.
  • Esc closes it and returns focus to the trigger; items are 44px tall.