Tooltip component

Figma Component
Tooltips display informative text when users hover over, focus on, or tap an element.

Properties

NameDescriptionDefault
$nowrap
Should the content ignore line breaks
-
$showOnOverflow
Should the tooltip be displayed only when the direct child element overflows, e.g. when text is truncated.
-
maxWidth
Tooltip content max width
-
offset
Offset between element and tooltip (px)
-
placement
Tooltip placement
-
text
Tooltip text
-
Note: This table does not include native DOM and React properties like `onClick`, `ref`, `id`, `aria-label` (and many others) supported by this component.

tooltip Positions

Left
Right
Top
Bottom
Bottom Right

Show On Overflow

The `$showOnOverflow` prop can be used to show the tooltip only when the element content is overflowing or contains truncated text.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.