Tooltip

Tooltips display brief labels or messages.

Props

React props
NameTypeRequiredDefaultDescription
classNamestring | Partial<Record<"container" | "content" | "actions" | "supportingText" | "toolTip" | "subHead", string>> | ClassNameComponent<TooltipInterface>NoRoot classes (string), static element classes (object), or state-aware element classes (function).
idstringNoCustom ID for accessibility linking. Auto-generated if not provided.
titlestringNoHeadline of a rich tooltip.
variantTooltipVariantNo'plain'`'plain'` is a small text bubble; `'rich'` is a card-like surface with title/text/actions.
textstringNoSupporting text for the tooltip.
positionAnchorPositionNoPlacement relative to the target. Defaults to `bottom-right` for `variant="rich"`, `bottom` otherwise.
triggerTooltipTrigger | TooltipTrigger[]No['hover', 'focus']Interaction(s) that open the tooltip.
describeTargetbooleanNotrueWhether the open tooltip describes its target through `aria-describedby`.
openDelaynumberNo400Delay in milliseconds before showing the tooltip. Default: 400ms
closeDelaynumberNo150Delay in milliseconds before hiding the tooltip. Default: 150ms
openbooleanNoControlled open state.
defaultOpenbooleanNofalseInitial open state when uncontrolled.
transitionTooltipTransitionNoAnime.js opacity/scale open-close timing. Shared by every framework, no `motion/react`.
contentReactNodeNoCustom content slot that replaces title/text/buttons when provided
anchorRefRefObject<HTMLElement>NoCustom anchor for positioning. Defaults to the trigger element.
onOpenChange(open: boolean) => voidNoNotifies an accepted open-state request.