BalanceReckon Design System
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

PropTypeRequiredDefaultDescription
childrenReactElementYes—The target element.
contentstring | ReactElementYes—The content of the tooltip.
idstring——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
—topWhere, in relation to the target, to place the tooltip.
positionStrategy
absolute|fixed
—absoluteWhich (CSS) positioning strategy to use.
verticalOffsetnumber——Which (CSS) positioning strategy to use.

HelpIndicatorProps

PropTypeRequiredDefaultDescription
contentTooltipProps['content']Yes—The content of the tooltip.
idstring——The ID of the element.
placement
top|right|bottom|left
———