UI Components
DropdownMenu
Accessible dropdown menu with items, checkboxes, radio groups, and sub-menus.
Quick Preview
Installation
npm install @radix-ui/react-dropdown-menu
// Copy fromsrc/components/ui/DropdownMenu.tsx
Examples
Controlled checkboxes
Radio group
Submenu and shortcuts
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
DropdownMenu | Root | - | Root component |
DropdownMenuTrigger | Trigger | - | Element that opens the menu |
DropdownMenuContent | Content | - | Menu panel |
DropdownMenuItem | Item | - | Standard menu item |
DropdownMenuCheckboxItem | CheckboxItem | - | Toggleable checkbox item |
DropdownMenuRadioItem | RadioItem | - | Radio group item |
DropdownMenuSeparator | Separator | - | Visual divider |
DropdownMenuLabel | Label | - | Non-interactive group label |