Zazz Design Framework
Components

Tooltip

Hover and focus hints on the Popover API with Interest Invokers and anchor positioning.

A tooltip pairs a trigger with a .tooltip__content hint (popover="hint"). Wire them with interestfor on the trigger. Hover, focus, and long-press all work automatically, ARIA included. Position the hint with data-side.

The hint holds a <span class="tooltip__arrow" aria-hidden="true"></span> that points back at the trigger, and carries data-use-inverted-menu="false" to opt out of the inverted dark popover scheme.

Default

Loading components…

With keyboard shortcut

Loading components…

Sides

Loading components…

Disabled trigger

Loading components…

API

AttributeWhereValues
interestfortriggerid of the .tooltip__content
data-side.tooltip__contenttop, bottom, left, right
data-align.tooltip__contentcenter
data-use-inverted-menu.tooltip__contentfalse

On this page