Skip to content
Overlay

Tooltip

An attribute directive that adds a tooltip to any element. Uses a viewport-aware overlay layer so the tooltip flips to stay on-screen.

[atlTooltip]
WCAG AA0 deps

Demo

Live PreviewReact
html
<atl-button atlTooltip="Save your changes">Save</atl-button>
<atl-button
  atlTooltip="Copy to clipboard"
  atlTooltipPosition="right"
  variant="outline"
>Copy</atl-button>

API (Angular)

PropTypeDefaultDescription
atlTooltipstringTooltip text content (required)
atlTooltipPosition'above' | 'below' | 'left' | 'right''above'Preferred position
atlTooltipDisabledbooleanfalseDisables the tooltip
atlTooltipShowDelaynumber300Delay in ms before showing
atlTooltipHideDelaynumber0Delay in ms before hiding

Import

ts
import { AtlTooltip } from '@atelier-ui/angular';

Accessibility

ARIA roletooltip

KeyAction
Tab (focus trigger)Show the tooltip. It hides when focus leaves.
EscapeDismiss the tooltip while focus stays on the trigger.
  • Uses aria-describedby — the tooltip supplements, never replaces, the trigger's accessible name.
  • Tooltips are shown on focus, not only on hover, so keyboard users get the same affordance.
  • Never put interactive content (links, buttons) inside a tooltip — it cannot be reached by keyboard.