Dropdown Menu

A menu of actions opened from a trigger element.

The DropdownMenu shows a list of actions from a trigger. Compose it from DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, and the checkbox, radio, and submenu subcomponents.

Preview

Usage

Installation

$ npx shadcn@latest add https://spark-ui-olive.vercel.app/r/dropdown-menu.json

Properties

PropTypeDefaultDescription
sideOffsetnumber4DropdownMenuContent only: distance from the trigger.
classNamestringAdditional CSS classes. Available on every subcomponent.