Skip to content

Tooltip

Tooltip is a retained modifier for concise labels or explanations revealed by hover, focus, or long press.

IconButton(images::refresh, "Refresh")
.With(Tooltip("Refresh messages"))

The message accepts StringVariant. Tooltip timing, placement, viewport margin, surface, typography, and touch duration come from TooltipStyle. Because the trigger already requires an accessible name, the tooltip supplements rather than replaces the control’s semantics.

Keep tooltip text concise and non-interactive. Use Popup when users must focus, activate, or navigate the floating content.

  • Tooltip(StringVariant message).
  • Tooltip::Descriptor() participates in retained modifier reconciliation.
  • TooltipStyle configures appearance and interaction timing.
  • Uses AnchorPlacement, AnchorSide, and AnchorAlignment.

See Popup for interactive floating content.