ReUI
Components

Dropdown Menu

Displays a menu to the user — such as a set of actions or functions — triggered by a button.

Installation

pnpm dlx shadcn@latest add https://reui.io/r/dropdown-menu.json

Examples

Default

Loading

Checkbox

Loading

Radio Group

Loading

API Reference

This component is built using Radix UI Dropdown Menu primitives. For detailed information, please visit the full API reference.

This component is based on the DropdownMenu.Root primitive. For more details, refer to the original documentation.

This component is based on the DropdownMenu.Trigger primitive. For more details, refer to the original documentation.

This component is based on the DropdownMenu.Group primitive. For more details, refer to the original documentation.

This component is based on the DropdownMenu.Portal primitive. For more details, refer to the original documentation.

This component is based on the DropdownMenu.Sub primitive. For more details, refer to the original documentation.

This component is based on the DropdownMenu.RadioGroup primitive. For more details, refer to the original documentation.

This component is based on the DropdownMenu.SubTrigger primitive and includes the following custom props:

PropTypeDefault
inset booleanfalse
className string

This component is based on the DropdownMenu.SubContent primitive and includes the following custom props:

PropTypeDefault
className string

This component is based on the DropdownMenu.Content primitive and includes the following custom props:

PropTypeDefault
sideOffset number4
className string

This component is based on the DropdownMenu.Item primitive and includes the following custom props:

PropTypeDefault
inset booleanfalse
variant enum default
className string

This component is based on the DropdownMenu.CheckboxItem primitive and includes the following custom props:

PropTypeDefault
checked boolean
className string

This component is based on the DropdownMenu.RadioItem primitive and includes the following custom props:

PropTypeDefault
className string

This component is based on the DropdownMenu.Label primitive and includes the following custom props:

PropTypeDefault
inset booleanfalse
className string

This component is based on the DropdownMenu.Separator primitive and includes the following custom props:

PropTypeDefault
className string

This component is a custom implementation that displays keyboard shortcuts next to menu items.

PropTypeDefault
className string