Skip to content

Tooltip

Tooltips provide concise supplementary information when users hover over or focus on a UI element, typically buttons or icons.

Usage

Tooltips briefly appear over other content to provide additional context. They are triggered by hover or focus, making them particularly useful for desktop interactions.

Since tooltips are temporary and generally not accessible on touch devices, they should not contain critical or primary information.

Tooltip

Tooltips are applied to controls that rely solely on an icon, such as icon buttons, icon-only tabs, application header and collapsed versions of vertical navigation and the side panel.

They may also reveal truncated text only when the element is focusable, for example a tree node.

Tooltip

When to use

  • To clarify an element’s function or provide extra context for icons or buttons.
  • For supplementary, non-essential information only.

Best practices

  • Keep text brief.
  • Do not include interactive elements.
  • Use sparingly to reduce visual noise.
  • Apply tooltips only to interactive, keyboard-focusable elements.
  • Never add tooltips on disabled elements.
  • When implementing tooltips on touch devices, ensure they appear on tap and that this interaction does not conflict with other functionalities.
  • Always use the tooltip component, not the browser’s native tooltip.
  • Use a 500ms show delay and dismiss on pointer leave or focus loss.

Except where otherwise noted, content on this site is licensed under MIT License.