Tooltip

Display non-interactive text content on hover.


Props

children

stringTrigger element, must be a focusable, single element.

label

stringContent to display in the tooltip.

side

"top" | "right" | "bottom" | "left"Side of the tooltip to display.

sideOffset

numberOffset of the tooltip from the side of the target.

align

"start" | "center" | "end"Alignment of the tooltip to display.

open

booleanWhether the tooltip is open or not.

onOpenChange

functionCalled when open state changes

Alignment

Start

Center

End