Skip to content

GhostSubmenuContent reference ​

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

Floating child menu with local roving focus and optional portaling.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
portalbooleanfalseNoRenders the child via a Vue teleport.
portalToGhostPortalTarget"body"NoDestination for a portaled child menu.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultPrimary content.

Slot props: default ​

None declared.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-partsub-contentFloating child menu surface.

CSS variables ​

None declared.

Accessibility ​

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

Required ARIA attributes: aria-labelledby.

Keyboard ​

KeyActionAutomated browser test
ArrowDownMoves to the next enabled item.nested menubar switches top-level menus and tabs out of a portaled grandchild in ltr @cross-browser (@ghostvue/themes)
ArrowUpMoves to the previous enabled item.nested menubar switches top-level menus and tabs out of a portaled grandchild in ltr @cross-browser (@ghostvue/themes)
HomeFocuses the first enabled item.nested menubar switches top-level menus and tabs out of a portaled grandchild in ltr @cross-browser (@ghostvue/themes)
EndFocuses the last enabled item.nested context menu restores the invoking row and navigates locally in ltr @cross-browser (@ghostvue/themes)
ArrowLeftCloses the child in LTR. On a Menubar leaf in RTL, opens the next top-level menu.nested context menu restores the invoking row and navigates locally in ltr @cross-browser (@ghostvue/themes)
nested menubar switches top-level menus and tabs out of a portaled grandchild in rtl @cross-browser (@ghostvue/themes)
ArrowRightCloses the child in RTL. On a Menubar leaf in LTR, opens the next top-level menu.nested context menu restores the invoking row and navigates locally in rtl @cross-browser (@ghostvue/themes)
nested menubar switches top-level menus and tabs out of a portaled grandchild in ltr @cross-browser (@ghostvue/themes)
EscapeCloses this level and returns focus to its trigger.nested context menu restores the invoking row and navigates locally in ltr @cross-browser (@ghostvue/themes)
TabCloses the branch and moves to the next host-relative stop.nested context menu restores the invoking row and navigates locally in ltr @cross-browser (@ghostvue/themes)
nested menubar switches top-level menus and tabs out of a portaled grandchild in ltr @cross-browser (@ghostvue/themes)
Shift+TabCloses the branch and moves to the previous host-relative stop.nested context menu restores the invoking row and navigates locally in ltr @cross-browser (@ghostvue/themes)
nested menubar switches top-level menus and tabs out of a portaled grandchild in ltr @cross-browser (@ghostvue/themes)

Verification ​

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

CategoryStatusEvidence
Automated keyboardPassedEvery declared key maps to a Chromium browser test that CI runs and requires to pass on every commit.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

None declared.