Skip to content

Tooltip API

API reference docs for the Stash Tooltip component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import Tooltip from '@leaflink/stash/Tooltip.vue';

Props

NameTypeDefaultDescription
disableTeleportbooleanfalseDisables teleporting the popover menu to an external element
isOpenbooleanfalseSets if the menu is open. If not set from the parent context, the menu will be controlled internally.
sideTooltipSidetopSets the placement of the menu
teleportTostring | HTMLElement#stash-menus-mount-nodeThe query selector where the tooltip should be teleported
textstring '' String content to display within the tooltip

Slots

NameDescription
defaultThe default slot is the element or component to which the tooltip will be anchored.
iconA slot for the primary icon. This icon will be displayed before the text or content.
contentThe content to display in the tooltip. This may be text node, an element, or a component.
secondaryIconA slot for the secondary icon. This icon will be displayed after the text or content.

Events

None