Tooltip

Floating label that appears near a trigger element. Supports 12 placements, hover / click / focus triggers, custom colors, and controlled open state.

Playground
Content
placement
trigger
arrow
disabled
<Tooltip
  title="This is a tooltip"
>
  <Button variant="secondary">Hover me</Button>
</Tooltip>

Placements

12 placement options: top, bottom, left, right, each with left-aligned, centered, and right-aligned variants.

Trigger modes

Use trigger='hover' (default), 'click', or 'focus'.

Custom color

Pass any CSS color to the color prop to override the default dark background.

No arrow

Set arrow={false} to hide the directional pointer.

Rich content

title accepts any ReactNode. Pass JSX for multi-line or structured tooltips.

Controlled

Use open + onOpenChange for full control over visibility.

API

PropertyTypeDefaultDescription
title*ReactNode—Tooltip content. Set to null/undefined to disable.
placement"top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom""top"Placement relative to the trigger element.
trigger"hover" | "click" | "focus" | TooltipTrigger[]"hover"How to activate the tooltip.
openbooleanControlled open state.
defaultOpenbooleanfalseUncontrolled initial open state.
onOpenChange(open: boolean) => voidCalled when visibility changes.
colorstringCustom background and arrow color (any CSS color).
arrowbooleantrueShow the directional arrow.
mouseEnterDelaynumber100Delay before showing in milliseconds.
mouseLeaveDelaynumber100Delay before hiding in milliseconds.
disabledbooleanfalseDisable the tooltip entirely.
overlayClassNamestringExtra class on the floating overlay.