Variable: useIsTooltipActive
@arolariu/components / useIsTooltipActive
Variable: useIsTooltipActive
useIsTooltipActive: () =>
boolean
Defined in: components/ui/chart.tsx:634
Returns true if the Tooltip is currently active (visible).
Returns false if the Tooltip is not active or if used outside a chart context.
Recharts only allows one Tooltip per chart, so this hook does not take any parameters. Weird things may happen if you have multiple Tooltip components in the same chart so please don't do that.
Returns
boolean
True if the Tooltip is active, false otherwise.
Since
3.7
// was this page useful?