Skip to content

Tooltip

Tooltips display brief helper text when users hover or focus an element. (Powered by Radix)

$cookest-ui add tooltip

Basic

A basic tooltip.

On Different Elements

Tooltips can wrap any element — buttons, badges, or inline text.

NewHover this text
PropTypeDefaultDescription
side"top" | "bottom" | "left" | "right""top"Which side of the trigger the tooltip appears on.
delayDurationnumber700Delay in milliseconds before the tooltip appears on hover (set on TooltipProvider).
asChildbooleanWhether the Trigger should merge its props onto its immediate child.

Related Components