Skip to main content

Tooltip

Hover and focus tooltip with tight placement, icons, multiline content, and four-sided positioning.

Top (default)

Bottom

Left & right

Icon-only trigger

With icon in tooltip

With shortcut

Multiline

Aligned start & end

Enter animation variants

enterAnimationVariant — click each button to show and hide the tooltip; compare spring (default, spring, zoom) vs legacy ease presets. Powered by motion (AnimatePresence + spring).

API

PropRequiredTypeDefaultDescription
themeOptionalSiteThemeatelierVisual theme.
modeOptional"light" | "dark"lightColor mode.
contentOptionalReactNodeTooltip text or content.
iconOptionalReactNodeOptional leading icon inside the tooltip.
childrenOptionalReactNodeTrigger element — button, IconButton, etc.
sideOptional"top" | "bottom" | "left" | "right"topPlacement relative to trigger.
alignOptional"start" | "center" | "end"centerAlignment along the placement edge.
multilineOptionalbooleanfalseWrap long tooltip copy instead of one line.
portalOptionalbooleantruePortals to document.body by default so overflow ancestors cannot clip the tooltip. Pass portal={false} for inline placement.
disabledOptionalbooleanfalseSuppress tooltip display while keeping the trigger (used by TruncatedText when text fits).
positionRefOptionalRefObject<HTMLElement>Portaled placement bounds (defaults to trigger wrapper). TruncatedText passes the text span ref.
enterAnimationVariantOptionalEnterAnimationVariantdefaultTooltip enter/exit via motion (AnimatePresence + spring). default/spring/zoom use fluid spring physics; subtle, fade, slide-*, scale, or none.
open / onOpenChangeOptionalbooleanControlled visibility. When open is set, hover/focus no longer toggles the tooltip.