Tooltip

Floating tooltip with spring-based animations, configurable placement, and rich content support.

Installation

npx shadcn@latest add https://www.fluidfunctionalism.com/r/tooltip.json

Basic

Placement

Rich Content

Delay

API Reference

PropTypeDefaultDescription
contentReactNodeThe content displayed inside the tooltip.
childrenReactElementThe trigger element. Must accept a ref.
side"top" | "right" | "bottom" | "left""top"Preferred side of the trigger to render the tooltip.
sideOffsetnumber8Distance in pixels between the tooltip and the trigger.
delayDurationnumber200Milliseconds to wait before showing the tooltip on hover.
classNamestringAdditional classes applied to the tooltip content container.