DropdownMenu
OrganismAccessible dropdown using role="menu" + role="menuitem". Closes on Escape and outside click. Supports left/right alignment, icons, separators, danger and disabled items, and arrow-key navigation.
<DropdownMenu
trigger={<Button variant="outline" size="sm">Actions ▾</Button>}
items={[
{ label: 'Edit', icon: '✏' },
{ label: 'Duplicate', icon: '⧉' },
{ type: 'separator' },
{ label: 'Delete', icon: '🗑', danger: true },
]}
/><DropdownMenu align="right"
trigger={<Button variant="ghost" size="sm">⋮</Button>}
items={[{ label: 'View details' }, { label: 'Remove', danger: true }]}
/>