Tooltip

A short label, or a small card with a title and description, shown on hover or keyboard focus. Eight tail placements, three sizes, light or dark.

FreeReact and Vue

Add a light Orvain Tooltip, 2X-Small (24), placed top left with a tail, reading “Insert Tooltip”.

Orvain MCPIncluded with the library

When to use#

  • To name an icon-only button: Copy, Archive, More actions.
  • To show a keyboard shortcut or the full text of a truncated value.
  • For one short, optional fact that is not needed to complete the task.

When not to use

  • Use a Popover for interactive content, such as links, buttons or form fields, or for longer content.
  • Use help text on the page for information people need to succeed, such as a field's format.

Anatomy#

1Trigger

The element being described. It keeps its own focus and hit area.

2Bubble

2X-Small: 12px text, 4px radius. X-Small: 14px text, 8px radius. Large: a 268px card with a globe icon, title, description and close, 16px radius.

3Tail

A rounded-tip notch, 8×4 or 12×6, 8, 12 or 16px from the bubble's corner, or centred.

States#

Placement

Top or bottom (left, centre, right) or the sides; flips or shifts when there is no room.

Light and dark

White with a #f2f2f2 stroke, or #070707 with white text.

Without tail

The bubble alone, for dense layouts.

Shown

After a short hover delay, or at once on keyboard focus; Esc closes it.

Source#

The Tooltip ships in the free packages, @orvain/react and @orvain/vue, and in the Figma library with every variant and state shown above. The code on this page is the code you install.

Install the packages