Tooltip

A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.

Basic Usage

Basic Tooltip

Hover over the button to see the tooltip.

Variants

Tooltip Variants

Default and destructive variants.

Without Arrow

Hide Arrow

Tooltip without the arrow indicator.

Positioning

Tooltip Positions

Tooltips can be positioned on different sides.

With Delay

Delayed Tooltip

Configure the delay before showing the tooltip.

API Reference

TooltipProvider

PropTypeDefaultDescription
delayDurationnumber0Delay in ms before showing tooltip

TooltipContent

PropTypeDefaultDescription
variant"default" | "destructive""default"Visual style variant
hideArrowbooleanfalseHide the arrow indicator
side"top" | "bottom" | "left" | "right""top"Side to display the tooltip
classstring-Additional CSS classes