Skip to content

Function: createTooltip() ​

ts
function createTooltip(options?): Tooltip;

Tooltips that meet WCAG 1.4.13 (content on hover or focus): shown on hover and keyboard focus after a delay, dismissable with Escape without moving focus, hoverable (moving onto the tooltip keeps it open), and persistent until the pointer or focus leaves. Not shown for touch input. One controller serves many triggers; one tooltip is visible at a time.

Parameters ​

ParameterType
options?TooltipOptions

Returns ​

Tooltip