# DropdownMenu A menu of actions from a button, with submenus, checkbox and radio items. ```ehtml Example import { DropdownMenu, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, } from "@elements/ui/dropdown-menu"; import { Button } from "@elements/ui/button"; My Account go("/profile")}> Profile ⇧⌘P Status bar Top Bottom Save page as ``` ## Parts | Part | What it is | |---|---| | `DropdownMenu` | The root: owns open, renders the trigger slot and, while open, the floating role=menu content with the default slot's items. | | `DropdownMenuItem` | An action row (role=menuitem). With href it renders a link. Selecting it closes the menu unless onSelect calls preventDefault() or closeOnSelect is false. | | `DropdownMenuCheckboxItem` | A row that toggles (role=menuitemcheckbox). checked is two-way and may be "indeterminate". | | `DropdownMenuRadioGroup` | Groups radio items (role=group); value is two-way and holds the checked item's value. | | `DropdownMenuRadioItem` | One choice in a radio group (role=menuitemradio). | | `DropdownMenuLabel` | A heading row. Skipped by arrow keys; names the group it sits in. | | `DropdownMenuGroup` | Groups items (role=group). | | `DropdownMenuSeparator` | A rule between groups (role=separator). | | `DropdownMenuShortcut` | A keyboard hint at the end of an item. | | `DropdownMenuSub` | A submenu: renders its trigger row (label or the trigger slot) and, while open, its own floating menu with the default slot's items. | | `DropdownMenuInput` | A filter row at the top of the menu: typing hides the rows that do not match. Focus stays in the input while ArrowDown and ArrowUp move the highlight; Enter chooses. | | `DropdownMenuClear` | A button that empties the filter input. clearButton on the input renders one in its row. | | `DropdownMenuEmpty` | A row shown only when the filter matches nothing. Its default slot is the message. | ## Slots | Slot | Part | Content | |---|---|---| | `trigger` | `DropdownMenu` | The button that opens the menu, usually a `