Tooltip
A short label that opens above an element while the pointer rests on it or the keyboard focuses it, here the name of a button holding only an icon.
Usage
Examples
Sizes
size sets the padding round the words and their size: sm 10px words, base 12px (the default) or lg 14px, which also widens the box to 288px; each button opens its own tooltip.
Border radius
borderRadius sets the tooltip's corners on the kit's one scale: none, xs 4px, sm 6px (the default), base 8px, lg 12px, xl 16px, or full to round it; each button opens its own tooltip.
Side
side opens the tooltip above (the default), to the right of, below or to the left of its trigger, and it flips to the opposite side when there is no room.
Delay duration
delayDuration is how long the pointer rests on the trigger before the tooltip opens, 200 ms by default; a TooltipProvider sets it for every tooltip inside it.
API Reference
It takes the props of Radix Tooltip.Root.