Tooltip

A tooltip is a small pop-up box that appears when a user hovers over an element, providing additional information or context.

Usage

Positioning

You can position the tooltip relative to the target element using the position prop.

Primitives

You can utilize the primitive components or the css prop to customize the checkbox.

ComponentDescription
TooltipRootThe context provider for the Tooltip parts
TooltipTriggerThe focusable element that triggers the tooltip on hover
TooltipPositionerThe positioning container for the tooltip
TooltipContentThe content of the tooltip
TooltipArrowThe arrow container of the tooltip bubble
TooltipArrowTipThe tip of the arrow

API

Props

The Tooltip component is an abstraction of the primitives and accepts the following props:

NameDefaultDescription
contentWhat to display in the Tooltip.

The Tooltip component also accepts all the props of the TooltipRoot primitive props

Parts

The TooltipParts API is an Object containing the full family of components.

NameDescription
RootThe TooltipRoot component.
TriggerThe TooltipTrigger component.
PositionerThe TooltipPositioner component.
ContentThe TooltipContent component.
ArrowThe TooltipArrow component.
ArrowTipThe TooltipArrowTip component.