Dropdown menu component with customizable items, icons, separators, and destructive actions
Common actions for draft items
{ trigger: "MoreVertical icon", align: "end" }Menu triggered by a button
{ trigger: "Button" }Group related actions with separators
{ DropdownMenuSeparator: true }Add labels to categorize menu items
{ DropdownMenuLabel: true }User profile actions with logout
{ destructive: "LogOut" }Toggle options with checkboxes
{ DropdownMenuCheckboxItem: true }Select one option from a group
{ DropdownMenuRadioGroup: true }Nested menu with submenu items
{ DropdownMenuSub: true }Menu with icon-only items for compact display
{ icon: "only" }Right-click style menu for contextual actions
{ variant: "context" }Right-click or tap for options
Click anywhere in this box
Menu aligned to start position
{ align: "start" }Common file manipulation actions
{ category: "files" }Components for building selection menus with visual feedback and inline actions
Single selection with check indicator
{ DropdownMenuSelectableItem: true, selected: "boolean", onSelect: "() => void" }Selection with hover edit/delete buttons
{ DropdownMenuItemWithActions: true, onEdit: "() => void", onDelete: "() => void" }Entry point for creating new items
{ DropdownMenuAddItem: true, onClick: "() => void" }Full pattern with None option, items, and add entry
{ pattern: "selection-with-management" }DropdownMenuSeparator to group related actions visuallystyle={{ color: 'var(--primary)' }}align="end" for menus triggered by icons in the top-right cornervar(--color-surface-300)var(--elevation-300)DropdownMenuSelectableItem for single-selection menus with check indicatorDropdownMenuItemWithActions when items need edit/delete actions on hoverDropdownMenuAddItem as an entry point for creating new items, typically at the bottom of the menu