Installation
CLI
Install the component using the StarUI CLI:
star add dropdown-menuExamples
Checkbox Menu
Menu with toggleable options and live state display
Grid: • Rulers: • Guides: • Auto-save:
Display Settings
Radio Group Menu
Menu with mutually exclusive options
Current theme: system
Appearance
Context Menu
Rich menu with keyboard shortcuts and grouped actions
User Profile Menu
Complete user menu with avatar, profile info, and account actions
Creation Menu
Grouped menu for creating different types of content
Action:
Complex Data Controls
Multiple coordinated menus for table/list management
Sort: name () • View: list • Hidden: • Extensions:
API Reference
| Component | Description |
|---|---|
DropdownMenu |
Main container component for dropdown menus with positioning and state management |
DropdownMenuTrigger |
Button or element that opens the dropdown menu when clicked |
DropdownMenuContent |
Container for all dropdown menu items with proper positioning and styling |
DropdownMenuItem |
Individual clickable menu item for actions and navigation |
DropdownMenuCheckboxItem |
Menu item with checkbox state for toggleable options |
DropdownMenuRadioGroup |
Container for radio button menu items with shared state |
DropdownMenuRadioItem |
Menu item with radio button for single selection from group |
DropdownMenuSeparator |
Visual separator line to organize menu sections |
DropdownMenuLabel |
Text label for categorizing and organizing menu items |
DropdownMenuShortcut |
Keyboard shortcut display for menu items |
DropdownMenuGroup |
Logical grouping container for related menu items |