Skip to content

GhostDropdownMenu reference ​

Package: @ghostvue/themes. Status: experimental (stability policy).

Themed wrappers around headless GhostDropdownMenu parts. Importing from @ghostvue/themes loads the default elevation-3 menu surface and item stylesheet.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
openboolean—NoControlled open state forwarded to headless GhostDropdownMenu.
defaultOpenbooleanfalseNoInitial open state when `open` is omitted.

Emits ​

None declared.

Models ​

PropEventTypeDescription
openupdate:openbooleanv-model binding for `open`.

Slots ​

NameDescription
defaultTrigger, content, and menu items.

Slot props: default ​

NameTypeDescription
close() => voidCloses the menu.
openbooleanCurrent open state.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-parttriggerMenu button rendered by GhostDropdownMenuTrigger.
data-partcontentFloating menu surface rendered by GhostDropdownMenuContent.
data-partitemMenu action rendered by GhostDropdownMenuItem.
data-partcheckbox-itemToggle item rendered by GhostDropdownMenuCheckboxItem.
data-partradio-itemSingle-choice item rendered by GhostDropdownMenuRadioItem.
data-partlabelSection label rendered by GhostDropdownMenuLabel.
data-partseparatorDivider rendered by GhostDropdownMenuSeparator.
data-partsub-triggerThemed submenu trigger.
data-partsub-contentThemed child menu surface.
data-stateopenApplied on data-state while the menu is open.
data-stateclosedApplied on GhostDropdownMenuTrigger data-state while closed.
data-statecheckedApplied on checkbox and radio items when selected.

CSS variables ​

NameDescription
--ghost-elevation-3-bgMenu panel background.
--ghost-elevation-2-bgItem hover/focus background.
--ghost-focus-ring-colorFocus-visible outline color on items.

Accessibility ​

Role: menu. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.

Required ARIA attributes: aria-expanded, aria-controls, aria-haspopup.

Keyboard ​

KeyActionAutomated browser test
ArrowDownOpens from the trigger or moves to the next enabled item.Not reviewed
ArrowUpOpens from the trigger focusing the last item, or moves to the previous item.Not reviewed
EscapeCloses the menu and restores focus to the trigger.Not reviewed

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

Example source

Report export actions

Open a portaled submenu to choose an export format and include report notes.

Choose a format to export this report.

Example source

Record actions

Brief list with a per-row actions menu: grouped edit, duplicate, and status items, a destructive Archive with undo, and focus that follows each outcome.

Launch briefs

3 active · 1 published

  • Spring launch briefMaya Chen · Updated Nov 12
    Published
  • Pricing page refreshJonas Weber · Updated Nov 14
    Draft
  • Onboarding email seriesPriya Natarajan · Updated Nov 18
    Draft

Example source

View options

Inbox toolbar view menu with checkbox and radio items, visible check indicators, and a reset action on the elevation-3 surface.

InboxNewest first · unread on top · previews on