DropdownMenu
The DropdownMenu component is an action menu triggered by a button or control. It organizes contextual actions into a structured overlay, helping users access commands without leaving their current view.
tsx
Default
Basic dropdown menu triggered by a button.
With Icons
Leading icons for visual context.
With Shortcuts
Display keyboard shortcut hints on the trailing side.
Destructive
Red styling for dangerous actions like delete or remove.
Grouped
Organize items with groups, labels, and separators.
Disabled Items
Non-interactive items with muted styling.