Umbra UI

DropdownMenu

A menu of actions opened from a button.

Staticimport { DropdownMenu } from 'umbra-ui'

Props

DropdownMenu

PropTypeDefaultDescription
children ReactNode—`DropdownMenuTrigger` and `DropdownMenuContent`.
defaultOpen booleanfalseInitial open state when uncontrolled.
modal booleantrueBlock interaction outside the menu while open.
onOpenChange ((open: boolean) => void)—Called when the menu opens or closes.
open boolean—Controlled open state.

DropdownMenuItem

PropTypeDefaultDescription
shortcut ReactNode—Keyboard shortcut hint shown at the end of the row (visual only).
tone "neutral" | "danger"neutralColour intent; `danger` for destructive actions.

Usage notes

Built on Radix DropdownMenu.

Accessibility

  • menu / menuitem / menuitemcheckbox / menuitemradio roles.
  • Enter, Space or ↓ opens; ↑/↓ move; typing jumps; Escape closes and returns focus to the trigger.
  • shortcut is a visual hint only: bind the actual key yourself.

Import

import { DropdownMenu, DropdownMenuItem } from 'umbra-ui';
import 'umbra-ui/styles.css'; // once, at the root of your app