Containers · 4 parts · 3 states · Basic

Tooltip

A short label that appears on hover and focus, to name or explain a control.

01Anatomy

Save to favourites

4 parts. Select a number or a name to see what each part does.

01 · Trigger

The element the tooltip describes. Usually an icon button; it must be able to take focus.

Required
Yes
Recommended
Don’t put tooltips on disabled buttons: they can’t take focus, so the keyboard never reaches them.

02 · Container

The small floating box, with strong contrast against the page.

Required
Yes
Recommended
Keep it narrow, around 240 px at most. It must not cover what it describes.

03 · Text

A few words, plain text only: no links, no buttons.

Required
Yes
Recommended
If it needs a link or a button, it isn’t a tooltip anymore: use a popover.

04 · Arrow

Points to the trigger, so it’s clear what the tooltip refers to.

Required
No
When
Many systems drop it and rely on the distance from the trigger.

02Structure

  • Tooltipcomponent setauto layoutverticalhugalign center
  • Bubbleauto layouthugmax W 240padding V 6H 10radius 4
  • Texttextcenter
  • Arrowpolygon12 × 6boolean
  • Icon Buttoninstancethe trigger, outside the component
Structure
PropertyTypeValues
PlacementVariantTopBottomLeftRight
ArrowBooleantruefalse
TextText“Save to favourites”

Keep the trigger out of the component: the tooltip is placed next to any element. In prototypes, use the While hovering trigger with an overlay.

03States

HiddenThe default. The trigger already has its accessible name, the tooltip only shows it.
Shown on hoverAppears after a short delay, around 300 to 500 ms, so it doesn’t flash while the pointer passes by.
Shown on focusAppears at once when the keyboard reaches the trigger. Esc hides it without moving focus.

WCAG 1.4.13: the pointer can move onto the tooltip without it disappearing, and it stays until the pointer or the focus leaves. Touch screens have no hover: never put anything there that people need to finish a task.

04Variants

TopThe usual position: above the trigger, centred.
BottomWhen there’s no room above, for example at the top of the page.
SideNext to the trigger, for vertical toolbars and sidebars.
MultilineA short explanation on two lines at most. Longer than that, use a popover.

Position is decided by the room on screen: the tooltip flips to the other side when it would go off the edge.

There is no single correct anatomy: names, variants and properties differ from one design system to another. These are common structural models distilled from established design systems and accessibility guidance.

Fuori Frame

Proven methods for designing interfaces with AI. Every two weeks, in Italian.

Subscribe