Tooltips

Tooltips provide additional information about an element when users hover over or focus on it. They help improve user understanding without cluttering the interface.

Basic Usage

Wrap any element with a tooltip to provide additional context on hover.

Basic Tooltip

100%
Hover me

Positions

Tooltips can be positioned in four different directions relative to their trigger element.

Tooltip Positions

100%
Top Right Bottom Left

Rich Content

Tooltips can display rich content including keyboard shortcuts and formatting.

Rich Content Tooltips

100%
Search

Common Use Cases

Icon Buttons

Icon Button Tooltips

100%

Status Indicators

Status Tooltips

100%
Done Error

API Reference

Property Type Default Description content string - Text content of the tooltip position string 'top' 'top', 'right', 'bottom', 'left'

Best Practices

  • Keep tooltip content brief and focused
  • Use tooltips to provide additional context, not essential information
  • Consider the tooltip position relative to the viewport edges
  • Ensure tooltip content is accessible via keyboard navigation
  • Use consistent tooltip styles throughout your application
Pro tip: Tooltips are particularly useful for icon-only buttons where the action might not be immediately clear.