Tooltip

Hover or focus tooltip with blur enter/exit and spring spawn.

Preview

Hover or focus each button. Content fades and un-blurs in.

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.

open?
boolean
onOpenChange?
((open: boolean) => void)
id?
string
side?
"bottom" | "left" | "right" | "top"
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