Search the design system

Components

Tooltip

A tooltip gives contextual information about a design element.

tooltip

Usage

Tooltips provide short, contextual information about an element — often used to describe icons, condensed labels, or actions when space is limited. They appear on hover or focus and disappear automatically when the element is no longer active.

Anatomy

The tooltip consists of three elements: the label that provides context, the container that holds the information, and the tip that indicates direction toward the anchor.

Anatomy of a tooltip
  1. Label – the message text providing context or clarification.
  2. Container – the background surface that holds the label, styled with rounded corners.
  3. Tip (Caret) – a small directional triangle that points toward the anchor element to indicate its relationship.

Properties

Label

The label displays the accessible name of the trigger element. Keep text short and meaningful. Avoid wrapping where possible; wrap to a second line only when necessary.

Tooltip label

Behavior

Presentation

Tooltips appear after a short delay (around 700 ms) when an element is hovered or focused.
They fade in smoothly and hide immediately when the element is no longer active.
Only one tooltip is visible at a time.

Presentation of a tooltip

Dismissing

The tooltip disappears when the anchor loses hover or focus or when another tooltip is triggered.

Dismissing a tooltip

Text overflow

Avoid long text. When wrapping occurs, the tip remains visually centered relative to the anchor.

Text overflow of a tooltip

Placement

Tooltips position themselves automatically based on available space.
The default placement is above the trigger element, but they can also appear below, to the left, or to the right when needed.

Placement of a tooltip

The tooltip automatically repositions to stay visible within the viewport, and the tip adjusts to indicate direction.

Best practice

Long labels

Keep labels short and simple
Keep labels short and simple.
Avoid long or complex sentences that slow down scanning
Avoid long or complex sentences that slow down scanning.

Multiple tooltips

Show one tooltip at a time
Show one tooltip at a time.
Avoid multiple tooltips simultaneously
Avoid multiple tooltips simultaneously.

Width

Let the tooltip size adapt to its content
Let the tooltip size adapt to its content.
Avoid a fixed width for the tooltip
Avoid a fixed width for the tooltip.

Specs

Specs of a tooltip
ComponentsToggle Group / Code
ComponentsTooltip / Code

© DesignTech - AB Svenska Spel

What's newTerms of useAccessibility statementCookiesTeams channel [Internal]
@svs/ui version
2.3.0

Feedback

We always want to improve the Design System and would be thrilled to get your feedback.

Please share your wisdom with us.

Microsoft Teams [internal]

Designsystem@svenskaspel.se