Getting Started
Foundations
Components
Search for a command to run...
Dropdown menus (also called dropdown lists or popup menus) provide a compact way to present multiple actions or navigation options. They appear on demand when users interact with a trigger element, displaying a vertical list of selectable items. Dropdown menus are commonly used for application menus, context menus, user profile actions, or any scenario where space-efficient access to multiple options is needed.
Built on top of Radix UI's DropdownMenu primitive with full keyboard navigation (Arrow keys to navigate, Enter to select, Escape to close), type-ahead search, focus management, automatic positioning with collision detection, and accessibility support including proper ARIA attributes and roles.
import { DropdownMenu } from "@strongtie/design-system/dropdown-menu"This module exports the following components:
DropdownMenuDropdownMenuTriggerDropdownMenuContentDropdownMenuItemDropdownMenuCheckboxItemDropdownMenuRadioItemDropdownMenuLabelDropdownMenuSeparatorDropdownMenuShortcutDropdownMenuGroupDropdownMenuPortalDropdownMenuSubDropdownMenuSubContentDropdownMenuSubTriggerDropdownMenuRadioGroup<DropdownMenuItem>This component accepts the following custom props. For additional props inherited from Radix UI primitives see the Radix UI documentation.
| Prop | Type | Default | Description |
|---|---|---|---|
inset | boolean | - |
<DropdownMenuLabel>This component accepts the following custom props. For additional props inherited from Radix UI primitives see the Radix UI documentation.
| Prop | Type | Default | Description |
|---|---|---|---|
inset | boolean | - |
<DropdownMenuSubTrigger>This component accepts the following custom props. For additional props inherited from Radix UI primitives see the Radix UI documentation.
| Prop | Type | Default | Description |
|---|---|---|---|
inset | boolean | - |
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
Other CSS classes used by this component:
-insetdropdown-menu-contentdropdown-menu-sub-contentmenu-itemmenu-item-checkboxmenu-item-indicatormenu-item-labelmenu-item-radiomenu-item-separatormenu-item-shortcutmenu-item-sub-triggerThis component inherits accessibility features from Radix UI, including: