Components / Overlays

Tooltip native

A short hint shown on hover or long-press over its children.

Children
many
Loading the renderer…
Tooltip rendered by the React renderer on Web
Web React
Tooltip rendered by the SwiftUI renderer on iOS
iOS SwiftUI
Tooltip rendered by the Compose renderer on Android
Android Compose
Tooltip rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-tooltip, painted by each native renderer.

PropTypeDefaultDescription
contentrequiredstring–The hint text.
sidetop | right | bottom | left"top"Preferred side of the anchor.

No events, no slots. Children: many.

Role
tooltip
Semantics
tooltip describing its anchor
KeysAction
–Shows on hover AND keyboard focus of the anchor (after the platform delay); Escape hides
Recipe parts
Tooltip/contentTooltip/arrowTooltip/anchor
Keyed by
side:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme

Tooltip

The pointer's one-line label: a glass panel (12 radius, 12px text, padding 6 × 12, no arrow: a translucent arrow double-renders against the blurred panel) that opens at once on hover or focus and never holds a control.

More

`IconTooltip` is the common arm: a ghost glyph button whose tooltip IS its accessible name, so an icon-only control can never ship unlabelled. Touch has no hover, so the phones carry no tooltip: the label is the control's accessibility name there.

Webok
Tooltip / TooltipContentpackages/ui/src/tooltip.tsx

IconTooltip (icon-tooltip.tsx) = the glyph-button arm

iOSn/a

touch: no hover tooltips; the label is the accessibility name

Androidn/a

touch: no hover tooltips; the label is the content description

Desktopn/a

gpui-component's Tooltip::new on .tooltip(); no app wrapper