Skip to content

Tooltip

A tooltip displays informative text when users hover over, focus on, or tap an element.

Example of the tooltip component

The default background color of the Tooltip component has been updated to improve contrast on light (white) backgrounds.

New default: The background color is now inverted to ensure better accessibility and readability.

The tooltip component supports the option for body content to be used for explanatory text, instructions, or additional details.

Example of a tooltip with body content and a tooltip without body content

A tooltip will appear relative to the UI element it was triggered by. By default, position the tooltip above the target element. If space is limited, position it below or two the side.

Example of the different placement options for the tooltip

Tooltips should be paired with an interactive UI element, such as an icon button. The information displayed in a tooltip should be contextual, helpful, and nonessential while providing the ability to communicate and give clarity to the user.

Tooltips aren’t interactive; they only appear when you hover over an element, so users can’t interact with them, and they can’t include links, inputs, or buttons.

Example of a tooltip without interactive elements