Tooltip

Contextual help text that appears on hover or focus. Non-interactive, positioned relative to a trigger element.

Top tooltip

Options

Placement

Tooltip text
Top
Tooltip text
Bottom
Tip
Left
Tip
Right

Table of options

PropertyValuesDefault
texttextโ€”
placementtop / bottom / left / righttop

Behaviors

Appears on hover and focus

Show on hover and focus

Tooltips appear when the trigger is hovered or receives keyboard focus. They disappear when the pointer leaves or focus moves away.

Usage guidelines

Save changes

Do

Use tooltips to label icon-only buttons or provide brief supplementary info.

This is a very long tooltip that contains multiple sentences and detailed instructions that should really be in a help section instead.

Don't

Don't put long content in tooltips. Use a popover or inline help instead.

Accessibility

  • Uses role="tooltip" on the tooltip element.
  • Trigger should have aria-describedby pointing to the tooltip ID for screen readers.
  • Tooltips are non-interactive โ€” they cannot contain links or buttons.
  • Shows on both hover and focus to support keyboard users.

Design checklist

โœ“
All color themesWorks across light and dark modes.
โœ“
Defined optionsPlacement and text documented.
โœ“
Usage guidelinesDo/don't for content length.
โœ“
Design tokensComponent-scoped tokens (--tooltip-*).