Zazz Design Framework
Components

Tooltip

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

A <ui-tooltip> wraps a trigger button and its [data-slot="tooltip-content"] popover (popover="hint"), connected via interestfor on the trigger. The class form <div class="ui-tooltip"> is equivalent: the tag is CSS-only without JavaScript. Hover, focus, and long-press work automatically via the platform.

Default

Loading components…

With keyboard shortcut

Loading components…

Sides

Loading components…

Disabled trigger

Loading components…

API

AttributeTargetValues
interestforTriggerID of [data-slot="tooltip-content"]
data-side[data-slot="tooltip-content"]top, bottom, left, right
data-align[data-slot="tooltip-content"]center
data-use-inverted-menu[data-slot="tooltip-content"]false

On this page