Dropdown Menu
A menu of actions anchored to a button.
Installation
Copy the command below and run it in your terminal.
Usage
Import Dropdown Menu and compose it with sub-components:
Examples
Dropdown menus in common patterns and real-world use cases.
Row actions
Dynamic width
Menus and submenus size to their longest item plus a buffer instead of hugging the trigger.
Anatomy
DropdownMenu.Root - Provides dropdown menu state.
DropdownMenu.Trigger - Opens the dropdown menu.
DropdownMenu.Label - Labels a menu section.
DropdownMenu.Item - Renders a menu action.
DropdownMenu.Content - Renders the menu surface.
DropdownMenu.Separator - Separates menu items.
DropdownMenu.Sub - Provides submenu state.
DropdownMenu.SubContent - Renders a submenu surface.
DropdownMenu.SubTrigger - Opens a submenu.
bunx @sivir-ui/svelte add dropdown-menu