Tooltip
A short label that appears on hover and focus, to name or explain a control.
01Anatomy
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.
Example spacing, measured on this drawing (16 px = 1 em). A common implementation, not a rule: values change from system to system. W and H are width and height, as in Figma: Hug follows the content, Fill takes the space of the parent.
Spacing is measured on the normal view: switch back to Normal to show it.
02Structure
- Tooltipcomponent setauto layoutverticalhugalign center
- Bubbleauto layouthugmax W 240padding V 6H 10radius 4
- Texttextcenter
- Arrowpolygon12 × 6boolean
- Icon Buttoninstancethe trigger, outside the component
| Property | Type | Values |
|---|---|---|
| Placement | Variant | TopBottomLeftRight |
| Arrow | Boolean | truefalse |
| Text | Text | “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
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
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.
Proven methods for designing interfaces with AI. Every two weeks, in Italian.
Subscribe