Dropdown Menu

Menu representing a set of actions, triggered by a button.

This component inherits parts and props from the Radix Dropdown Menu component. View source

Contains all the parts of a dropdown menu.

Wraps the Button or Icon Button that toggles the dropdown menu. Supports common margin props.

Optionally renders ChevronDownIcon in the trigger.

The component that pops out when the dropdown menu is open.

PropTypeDefault
align"start" | "end""start"
sideOffsetnumber5
alignOffsetnumber0

The component that contains the dropdown menu items.

PropTypeDefault
color"gray" | "red""gray"

Used in conjunction with DropdownMenu.Label to group multiple items.

Used to render the label of a group (not focusable using arrow keys).

Used to visually separate items in the dropdown menu.

  • Should only be used for immediate actions (e.g. editing or deleting an entity, navigating to a different page, exporting data)
  • Should not maintain a selected state (see Select)
  • Destructive actions should be red

You can add icons to dropdown menu items to make actions more recognizable.

Use groups and labels to organize related actions.

If using Icon Button as a trigger, sideOffset and alignOffset will likely need to be set to account for extra ghost button padding. Here are some common examples:

Use the disabled prop to disable actions that are not currently available.