Tooltip

A tooltip is a small box with a short piece of text that appears next to an element when people hover over it or focus on it.

Overview

Use a tooltip to give a little extra information about an element, like the name of an icon button. It only contains text, and it never holds anything people can tap or click.

A tooltip has 2 themes (light and dark) and can point at its target from 8 placements, with or without an arrow. That makes 18 variants in total: 2 themes x 9 placement values (top, top-start, top-end, bottom, bottom-start, bottom-end, left, right, and none for no arrow).

Anatomy

  1. Container: a small box that holds the text.

  2. Main text: a short title or label that says what the target is or does. Every tooltip has this.

  3. Supporting text (optional): one short line under the main text that adds detail. Leave it out when the main text is enough.

  4. Arrow (optional): a small pointer that always points at the target.

Tooltip or hint text?

Component

Use it for

Where it shows

Tooltip

A short extra detail, like the name of an icon

Only when people hover or focus on the target

Hint text

Help people need to fill in a field

Always visible below the field

If people need the information to finish a task, don't hide it in a tooltip. Show it on the screen.

Do and Don't

Do

Keep the main text to a few words

Dont

Write a full sentence or paragraph as the main text.

Do

Add supporting text only when it says something new

Dont

Repeat the main text in the supporting text

Do

Add supporting text only when it says something new

Dont

Repeat the main text in the supporting text

Do

Add a tooltip to an icon-only button

Dont

Add a tooltip to a button that already has a clear label

Properties

Theme

The tooltip has a light theme and a dark theme. Choose the theme for contrast with the surface behind the tooltip, not to match the app theme.

  • Dark: use it on light surfaces.

  • Light: use it on dark surfaces.

Placement

Placement is where the tooltip sits compared to its target. It is also the name of each variant in Figma. The arrow follows from it: the arrow always points at the target, so it sits on the opposite side. For example, with the placement top, the tooltip is above the target and the arrow is at the bottom of the tooltip.

Placement

Where the tooltip sits

Arrow position (follows the placement)

Top

Above the target, centered

Bottom center

Top start

Above the target, lined up with its start edge

Bottom left

Top end

Above the target, lined up with its end edge

Bottom right

Bottom

Below the target, centered

Top center

Bottom start

Below the target, lined up with its start edge

Top left

Bottom end

Below the target, lined up with its end edge

Top right

Left

To the left of the target, centered

Right

Right

To the right of the target, centered

Left

Left and right are always centered on the target. There is no left-aligned or right-aligned version on the sides.

Arrow

The arrow is optional. In Figma, choose none to remove it. In code, set arrow to false.

  • When to use: when more than one element is close together, so people can tell which one the tooltip belongs to.

  • When not to use: when the target is clear without it.

Rules and behaviors

Position

  • If there isn't enough room on the chosen side, the tooltip flips to the opposite side, and the arrow follows.

Size

  • The maximum width is 240 on mobile and 320 on desktop.

  • Longer text wraps.

  • The desktop width applies at the same breakpoint where the layout changes from mobile to desktop.

Timing

  • The tooltip shows when people hover over the target or focus on it with the keyboard, after a short delay of 300ms.

  • It hides when the pointer leaves, when focus leaves, and when people press Escape.

Touch

  • Tooltips for action elements, like buttons, are not shown on touch screens.

  • Tapping the target runs its normal action.

Content

  • Text only. A tooltip has no buttons, links, or other interactive content.

Best practice

  • On touch screens, anything people need must be visible without a tooltip. For icon buttons, show a label or make sure the icon is easy to recognize.

  • Use the same placement for similar elements, so tooltips feel predictable.

  • Leave room around the target so the tooltip doesn't cover things people need to see.

Accessibility

  • The tooltip text is read by screen readers when the target is focused.

  • The tooltip shows on keyboard focus, not only on hover.

  • People can hide it with Escape.

  • Don't rely on color alone. The light and dark themes are chosen for contrast with the surface behind them.

No headings found on page

Want to work together?

syahrulmiftahfarid@gmail.com

© 2026 Syahrul Miftah Farid

Want to work together?

syahrulmiftahfarid@gmail.com

© 2026 Syahrul Miftah Farid

Create a free website with Framer, the website builder loved by startups, designers and agencies.