MeldUI

Dropdown Menu

A menu that appears on trigger click with items, groups, checkboxes, and nested sub-menus.

Usage

Checkbox Items

Use DropdownMenuCheckboxItem for toggleable options.

Sub-components

Element that opens the menu. Use with as-child to merge onto your own button.

The dropdown panel.

PropTypeDefaultDescription
sideOffsetnumber4Distance from the trigger in pixels.
align'start' | 'center' | 'end'-Horizontal alignment relative to the trigger.

A menu item.

PropTypeDefaultDescription
insetboolean-Add left padding to align with items that have icons.
variant'default' | 'destructive''default'Visual style variant.
disabledboolean-Disable the item.
textValuestring-Text used for typeahead matching.

A checkbox menu item.

PropTypeDefaultDescription
checkedboolean-Checked state. Use with v-model:checked.

Groups radio items.

PropTypeDefaultDescription
modelValuestring-Selected value. Use with v-model.

A radio menu item.

PropTypeDefaultDescription
value*string-The value for this radio option.

A label for a group of items.

PropTypeDefaultDescription
insetboolean-Add left padding to align with items that have icons.

Visual divider between groups.

Displays a keyboard shortcut hint.

Groups items semantically.

Container for a sub-menu.

Item that opens a sub-menu.

PropTypeDefaultDescription
insetboolean-Add left padding to align with other items.

The sub-menu dropdown panel.

Portal for rendering menu outside the DOM hierarchy.