Skip to content

HoverCardContent ​

Overview ​

The content panel of a HoverCard, rendered in a portal.

Theme entry: HoverCardContent

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.
sidestringundefinedThe side the hover card appears on relative to the trigger.
alignstringundefinedThe alignment along the side axis.
sideOffsetnumber4The distance in pixels from the trigger.
alignOffsetnumberundefinedThe offset along the alignment axis.
avoidCollisionsbooleanundefinedWhether to avoid collisions with boundary edges.
collisionBoundaryobject|arrayundefinedThe collision boundary element(s).
collisionPaddingnumber|objectundefinedThe padding for collision detection.
stickystringundefinedThe sticky behavior on the align axis.
hideWhenDetachedbooleanundefinedWhether to hide the content when the trigger is fully occluded.
forceMountbooleanundefinedWhether to force mount the content.
asstring|objectundefinedThe element or component to render as.
asChildbooleanfalseWhen true, merges props onto the child element instead of rendering a wrapper.

Slots ​

default ​

Slot.

Source ​

client/lib/shell/hover-card/HoverCardContent.vue