Skip to content

Dropdown Menu

Displays a menu to the user, triggered by a button. Fully keyboard-navigable and accessible. Built on Radix UI.

$cookest-ui add dropdown-menu

Basic

A simple dropdown with grouped menu items.

Recipe Actions

Use dropdown menus for contextual actions on recipe cards.

PropTypeDefaultDescription
DropdownMenuTriggerReactNodeThe element that opens the menu.
DropdownMenuContentReactNodeThe panel containing menu items.
DropdownMenuItemReactNodeA single actionable item in the menu.
DropdownMenuLabelstringNon-interactive label for a group.
DropdownMenuSeparatorA visual separator between item groups.
DropdownMenuShortcutstringKeyboard shortcut displayed on the right of a menu item.