OverlaysTooltip
Tooltip
Tooltips are meant to be used for supplemental content and should never be used for critical information the user needs to complete a task.
TooltipProps
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
children | ReactElement | Yes | — | The target element. |
content | string | ReactElement | Yes | — | The content of the tooltip. |
id | string | — | — | the id |
onVisibleChange | (isVisible: boolean) => void | — | — | Called with `true` when the tooltip appears and `false` when it goes away. Pass a stable function (e.g. from `useCallback`): a new function on every render reports `false` then `true` again while the tooltip is open. |
placement | top|right|bottom|left | — | top | Where, in relation to the target, to place the tooltip. |
positionStrategy | absolute|fixed | — | absolute | Which (CSS) positioning strategy to use. |
verticalOffset | number | — | — | Which (CSS) positioning strategy to use. |
HelpIndicatorProps
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
content | TooltipProps['content'] | Yes | — | The content of the tooltip. |
id | string | — | — | The ID of the element. |
placement | top|right|bottom|left | — | — | — |