Tooltip

Hover or focus tooltip with a subtle scale and fade, collision-aware placement, and optional cursor tracking.

Preview

Hover or focus. Press Esc to dismiss.

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/tooltip

API Reference

content
ReactNode
—
anchorRef?
RefObject<HTMLElement | SVGElement | null>

Existing trigger for controlled integrations such as chart cells.

—
anchorPoint?
{ x: number; y: number; }

Point within the anchor, as fractions of its rendered width and height.

—
followCursor?
boolean

Follow real pointer coordinates; keyboard focus still uses the anchor.

false
open?
boolean
—
onOpenChange?
((open: boolean) => void)
—
id?
string
—
side?
"top" | "right" | "bottom" | "left"
top
delay?
number

Delay before showing (ms). Default 120.

120
className?
string
—
wrapperClassName?
string

Classes for the outer wrapper span. Use to fix baseline / fill parent.

—

Updated