Tooltip

The Tooltip component displays additional information when a user hovers or focuses on a trigger element.

Usage

Default


<Tooltip content="Tooltip message" position="top">
  <Button>Hover me</Button>
</Tooltip>

Props

Sortable data table
PropTypeDefaultDescription
contentstring-The message displayed inside the tooltip.
position"top" | "bottom" | "left" | "right""top"Tooltip position relative to the trigger element.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultVisual theme of the tooltip.
state"success" | "error" | "warning"-Semantic state for styling.
rounding"none" | "small" | "medium" | "large"Configured DefaultBorder radius for the tooltip container.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultShadow effect applied to the tooltip container.
childrenReactNode-The trigger element (e.g., a button, icon, or text) that shows the tooltip.
classNamestring-Custom class name(s) for the tooltip container.
data-testidstring"tooltip"Test ID for the tooltip container.