Dropdown Menu

Triggers a menu that presents actions or options to the user.

@radix-ui/react-dropdown-menu

@lucide/react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/dropdown-menu.json

Examples


Checkboxes

Radio Group

API Reference

This component is based on the <div> element and supports all of its props and adds:

Root

PropTypeDefault
openboolean-

Trigger & SubTrigger

PropTypeDefault
asChildbooleanfalse

Content & SubContent

PropTypeDefault
sideleft right top bottombottom
alignstart center endstart

Item

PropTypeDefault
disabledboolean-

CheckboxItem

PropTypeDefault
checkedbooleanfalse
disabledbooleanfalse

RadioGroup

PropTypeDefault
checkedbooleanfalse
disabledbooleanfalse

More details about the <DropdownMenu> component can be found in the Radix Dropdown Menu documentation.