--- title: Dropdown Menu description: Displays a menu to the user — such as a set of actions or functions — triggered by a button. featured: true component: true links: doc: https://www.radix-ui.com/docs/primitives/components/dropdown-menu api: https://www.radix-ui.com/docs/primitives/components/dropdown-menu#api-reference --- ## Installation CLI Manual ```bash npx shadcn@latest add dropdown-menu ``` Install the following dependencies: ```bash npm install @radix-ui/react-dropdown-menu ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx showLineNumbers import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" ``` ```tsx showLineNumbers Open My Account Profile Billing Team Subscription ``` ## Examples ### Checkboxes ### Radio Group ### Dialog This example shows how to open a dialog from a dropdown menu. Use `modal={false}` on the `DropdownMenu` component. ```tsx showLineNumbers ```