A Hovercard toggles a content overlay when its anchor element is hovered for a minimum amount of time.

Preview

The hovercard will appear upon the mouse entering the anchor, with a delay of 300 milliseconds. It will remain open as long as the mouse cursor is over either the open card or the anchor.

Variants

Many Hovercards

Vue API

Slots

Name
Description
anchor

Anchor element that activates the hovercard. Usually a button.

content

Slot for the content that is displayed in the hovercard.

footerContent

Slot for the footer content.

headerContent

Slot for hovercard header content

Props

Name
Description
Default
appendTo

Sets the element to which the popover is going to append to. 'body' will append to the nearest body (supports shadow DOM).

Type: HTML_ELEMENT_TYPE|string
Values: 'body''parent'HTMLElement
'body'
contentClass

Additional class name for the content wrapper element.

Type: string|array|object
''
dialogClass

Additional class name for the dialog element.

Type: string|array|object
''
enterDelay

The enter delay in milliseconds before the hovercard is shown.

Type: number
TOOLTIP_DELAY_MS
externalAnchorElement

External anchor element reference. Use this instead of the anchor slot when the anchor may be inside a Shadow DOM, as querySelector cannot pierce shadow boundaries.

Type: HTML_ELEMENT_TYPE
null
fallbackPlacements

If the popover does not fit in the direction described by "placement", it will attempt to change its direction to the "fallbackPlacements".

Type: array
['auto']
footerClass

Additional class name for the footer content wrapper element.

Type: string|array|object
''
headerClass

Additional class name for the header content wrapper element.

Type: string|array|object
''
id

The id of the tooltip

Type: string
function() { return getUniqueString(); }
leaveDelay

The leave delay in milliseconds before the hovercard is hidden.

Type: number
TOOLTIP_DELAY_MS
offset

Displaces the content box from its anchor element by the specified number of pixels.

Type: array
[0, 16]
open

Controls whether the hovercard is shown. Leaving this null will have the hovercard trigger on hover by default. If you set this value, the default trigger behavior will be disabled, and you can control it as you need. Supports .sync modifier

Type: boolean
Values: nulltruefalse
null
padding

Padding size class for the popover content.

Type: string
Values: nonesmallmediumlarge
'large'
placement

The direction the popover displays relative to the anchor.

Type: string
Values: toptop-starttop-endrightright-startright-endleftleft-startleft-endbottombottom-startbottom-endautoauto-startauto-end
'top-start'
transition

Fade transition when the content display is toggled.

Type: boolean
Values: truefalse
false

Events

Name
Description
opened

Emitted when hovercard is shown or hidden

Type: Boolean | Array
Hovercard documentation last updated Thursday, June 11, 2026