Tooltip

Floating element that provides a control with contextual information via pointer or focus.

This component inherits and merges props from the Radix Tooltip primitive Root, Portal and Content parts. It supports common margin props.

PropTypeDefault
contentReactNode
widthResponsive<string>
minWidthResponsive<string>
maxWidthResponsive<string>
side"top" | "right" | "bottom" | "left""top"
align"start" | "center" | "end""center"
sideOffsetnumber4
alignOffsetnumber0

Use the side prop to control which side of the trigger the tooltip appears on.

Use the align prop to control how the tooltip aligns relative to the trigger.

Use sideOffset and alignOffset props to fine-tune tooltip positioning with pixel precision.

Use the maxWidth prop to create tooltips that span multiple lines with longer descriptive content. This is ideal for providing detailed explanations or instructions.

Control the width at which tooltips wrap text by adjusting the maxWidth prop.