Skip to content

Tooltip

[axTooltip] shows a small text label on hover or focus. Apply the directive to any host element and pass the label string; an internal ax-tooltip-panel (role="tooltip") is attached via a CDK connected overlay. Empty text disables the tooltip.

import { AxTooltipDirective } from '@axisui-ng/overlays';
<ax-icon-button [axTooltip]="'Copy to clipboard'" axTooltipPlacement="top" ariaLabel="Copy">
<ax-icon name="copy" />
</ax-icon-button>
InputTypeDefaultNotes
axTooltipstring''Tooltip text. Empty string disables showing.
axTooltipPlacementPlacementInput'top''top' | 'bottom' | 'start' | 'end', or side-align.
showDelaynumber300Delay before showing (ms); 0 shows immediately.
hideDelaynumber100Delay before hiding (ms); 0 hides immediately.
disabledbooleanfalseForce-disable the tooltip.

While visible, the host gets aria-describedby pointing at the tooltip panel. The panel uses role="tooltip". Tooltips appear on hover and focus; Escape hides. The host still needs its own accessible name (for example ariaLabel on an icon button) — the tooltip is supplementary.

Interactive examples live in Storybook under Overlays / Tooltip. Run pnpm storybook to explore them.