Tooltip

Android · iOS · Web
A tool-tip is a concise message showing additional contextual information that appears when a user hovers over a specific element, such as a button, icon, or link.

Overview

A Tooltip is a succinct, informative message that appears when a user hovers over on a specific element, such as a Button or Icon. It provides supplementary information that enhances the user's understanding of the interface, conveying the purpose, function, or expected behaviour of the element.

Live demo

Example content with tooltip
Content
Modifiers

Usage

Do

  • Use Tooltips for brief, decision-enhancing information.

  • Provide context or explanation directly related to UI elements like buttons.

  • Use to define terms or inline link elements effectively.

  • Expand abbreviations for clarity.

Don't

  • Avoid cluttering the interface with trivial or unnecessary Tooltips.

  • Refrain from using Tooltips for interactive elements; use toggle-tips instead.


Placement

A Tooltip is positioned in relation to its target, with default directions set to auto for proper placement. Specific directions (right, left, bottom, or top) can be used.


Alignment

  • The trigger button should be 4px away from the Tooltip container, maintaining the same distance regardless of the trigger's size.

  • Center the button and arrow vertically for clarity.

  • To prevent Tooltip obstruction, the trigger arrow can be positioned to the left, right, or centre of the container.


Content

  • A heading inside a tooltip is not necessary if it does not provide any extra content value. If you are using a heading, ensure it gives additional information rather than repeating or closely matching the trigger text. For example, avoid using “Pay through carsales” as a heading if the trigger is labeled the same. Instead, opt for headings like “How payment through carsales works”.

  • Keep Tooltip content concise, limiting it to a sentence or two.

  • Use sentence case and punctuate text for clarity.

  • Don't place links in a tooltip. Use the Toggle tip component instead.


States and interactions

  • The Tooltip has two states: active and inactive. By default, it is hidden and inactive.

  • Tooltips are displayed on hover, focus and on tap for touch screens.

  • In keyboard focus state, the trigger Icon should also be in focus.

  • Ensure easy dismissal of Tooltips, either by moving away, clicking outside, or pressing the Escape key.


Accessibility

  • Ensure keyboard accessibility for triggering and dismissing Tooltips.

  • Make Tooltips visually distinct, ensuring easy readability.

  • Provide alternative text for Icons triggering Tooltips, accurately describing their purpose or function.