Skip to content

MenubarSubContent

Overview

The content panel of a menubar submenu, rendered inside a portal.

Theme entry: MenubarSubContent

Props

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes to apply to the root element.
asstring|objectundefinedThe element or component to render as.
asChildbooleanfalseWhen true, merges props onto the child element instead of rendering a wrapper.
forceMountbooleanundefinedUsed to force mounting when more control is needed.
loopbooleanundefinedWhen true, keyboard navigation will loop from last item to first, and vice versa.
sideOffsetnumberundefinedThe distance in pixels from the trigger.
alignOffsetnumberundefinedAn offset in pixels from the start or end alignment options.
avoidCollisionsbooleanundefinedWhen true, overrides side and align preferences to prevent collisions.
collisionPaddingnumber|objectundefinedCollision padding in pixels.
hideWhenDetachedbooleanundefinedWhether to hide the content when the trigger becomes fully occluded.
prioritizePositionbooleanundefinedWhether to prioritize position to prevent collisions.

Slots

default

Slot.

Events

NameDescription
entryFocusEmitted when focus enters the sub-menu content.
escapeKeyDownEmitted when the Escape key is pressed.
pointerDownOutsideEmitted when a pointer-down event occurs outside the content.
focusOutsideEmitted when focus moves outside the content.
interactOutsideEmitted when any interaction occurs outside the content.
openAutoFocusEmitted when focus moves inside the content after it opens.
closeAutoFocusEmitted when focus returns to the trigger after the content closes.

Full event reference

Source

client/lib/navigation/menubar/MenubarSubContent.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2