pantoken / formats/interactions/src / initTooltip
Function: initTooltip()
initTooltip(
wrapper,tip,options?):TooltipHandle
Wire hover/focus show-hide with delay onto a tooltip wrapper and its tip bubble. Returns a cleanup function for use in web component disconnectedCallback.
CSS: wrapper = .instui-tooltip element, tip = its .tip child WC: wrapper = shadow .instui-tooltip, tip = shadow .tip
Parameters
wrapper
HTMLElement
tip
HTMLElement