Dropdown Menu
Displays a menu of actions triggered by a button. Supports shortcuts, nested submenus, checkboxes, radio groups, and destructive items. Chevron and inset spacing use logical properties for LTR and RTL.
Basic
Open a menu from a button with labels and separators.
Installation
CLI
Also needs
npm i lucide-reactComposition
structure
Usage
dropdown-menu.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| align | "start" · "center" · "end" | "center" | On DropdownMenuContent — prefer start/end over left/right assumptions. |
| inset | boolean | — | On Item / SubTrigger / Label / Checkbox / Radio — indent to align with icons. |
| variant | "default" · "destructive" | "default" | On DropdownMenuItem — destructive styles for deletes. |
| checked | boolean | — | On DropdownMenuCheckboxItem — checked state. |
| asChild | boolean | false | On DropdownMenuTrigger — merge props into the child (e.g. Button). |