A versatile Tooltip, managing state, context, and styling.
Anatomy
<Tooltip.Root>
<Tooltip.Trigger />
<Tooltip.Content />
</Tooltip.Root>Examples
Variants
Tooltip content comes with three built in variants, solid, outlined, and muted.
Sides
The side prop controls which side of the trigger the tooltip appears on: top, right, bottom, or left.
Open on Click
The openOnClick prop enables opening the tooltip by clicking the trigger instead of hovering.
Delay
The delay prop controls the hover delay in milliseconds before the tooltip opens.