--- title: Dropdown Menu description: Displays a menu to the user — such as a set of actions or functions — triggered by a button. featured: true base: base component: true links: doc: https://base-ui.com/react/components/dropdown-menu api: https://base-ui.com/react/components/dropdown-menu#api-reference --- ## Installation Command Manual ```bash npx shadcn@latest add dropdown-menu ``` Install the following dependencies: ```bash npm install @base-ui/react ``` 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 ```