Skip to content

MenubarContent ​

Overview ​

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

Theme entry: MenubarContent

Props ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
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.
sidestringundefinedThe preferred side of the trigger to render against.
sideOffsetnumber8The distance in pixels from the trigger.
alignstring"start"The preferred alignment against the trigger.
alignOffsetnumber-4An 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.
collisionBoundaryobject|arrayundefinedAn element to use as the collision boundary.
stickystringundefinedThe sticky behavior on the align axis.
hideWhenDetachedbooleanundefinedWhether to hide the content when the trigger becomes fully occluded.
prioritizePositionbooleanundefinedWhether to prioritize position to prevent collisions.

Slots ​

default ​

Slot.

Source ​

client/lib/navigation/menubar/MenubarContent.vue