Skip to main content

Tooltip

Displays helpful information in a small overlay when users hover or focus on an element. Use to provide additional context without cluttering the interface.

Anchor to children
children
HTMLElement

The content of the Tooltip.

Only accepts Text, Paragraph components, and raw textContent.

Anchor to children
children
HTMLElement

The content of the Tooltip.

Only accepts Text, Paragraph components, and raw textContent.

Examples
<>
<s-tooltip id="bold-tooltip">Bold</s-tooltip>
<s-button interestFor="bold-tooltip" accessibilityLabel="Bold">
B
</s-button>
</>

Preview

Tooltips only render on devices with a pointer and do not display on mobile devices.

  • Use for additional, non-essential context only
  • Provide for icon-only buttons or buttons with keyboard shortcuts
  • Keep content concise and in sentence case
  • Don't use for critical information, errors, or blocking messages
  • Don't contain any links or buttons
  • Use sparingly. If you need many tooltips, clarify the design and language instead
Was this page helpful?