Skip to content

DropdownMenuContent

Overview

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

Theme entry: DropdownMenuContent

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.
sidestringundefinedThe preferred side of the trigger to render against.
sideOffsetnumber4The distance in pixels from the trigger.
alignstringundefinedThe preferred alignment against 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.
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.
updatePositionStrategystringundefinedUpdate position strategy.
prioritizePositionbooleanundefinedThe positioning strategy.

Slots

default

Slot.

Events

NameDescription
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.
closeAutoFocusEmitted when focus returns to the trigger after the content closes.

Full event reference

Source

client/lib/navigation/dropdown-menu/DropdownMenuContent.vue

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