DreamLake

Tooltip

A small label shown on hover or keyboard focus. Compose TooltipTrigger (use asChild to wrap your own control) + TooltipContent. Positioning is anchored to the trigger and flips or shifts to stay within the viewport. Wrap a subtree in TooltipProvider to share an open delay.

Props

Tooltip

PropTypeDefaultDescription
side'top' | 'right' | 'bottom' | 'left''top'Preferred side.
showArrowbooleantrueShow the trigger wedge; set false when a wedge is inappropriate.
sideOffsetnumber6Gap from the trigger (px).
delayDurationnumber200Hover open delay (ms).
open / defaultOpen / onOpenChange——Controlled / uncontrolled open state.

TooltipTrigger accepts asChild. TooltipContent accepts a side that overrides the Tooltip's placement. TooltipProvider takes delayDuration.

The wedge follows the actual Floating UI placement after viewport flipping and shifting. It is decorative and does not receive pointer or keyboard focus. The panel enters with a short, side-aware slide; reduced-motion preferences disable entry. Motion uses CSS translate independently of positioning, so the surface and wedge move together without replacing the anchor coordinates.

TooltipContent motion={false} disables entry for that tooltip.