Tooltip

A popup that displays information on hover or focus.

Import

Usage

Tooltip Props

AttributeTypeDefaultDescription
defaultOpenbooleanfalseWhether the tooltip is open by default.
openboolean-Controlled open state of the tooltip.
onOpenChange(open: boolean) => void-Callback when the open state changes.

TooltipContent Props

AttributeTypeDefaultDescription
childrenReact.ReactNode-The content to display in the tooltip.
sideOffsetnumber0Distance from the trigger in pixels.
side'top' | 'right' | 'bottom' | 'left''top'The preferred side of the trigger to render against.
classNamestring-Additional CSS classes for styling.