These are all the event handlers that are required to control the visibility of a tooltip-like element.
This is the base tooltip component that can only be used to render a tooltip
with an animation when the visibility changes. If this component is used, you
will need to manually add all the event listeners and triggers to change the
visible
prop.
The Tooltipped
component can be used to dynamically add a tooltip to child
element by cloning the required event handlers and accessibility props into
the child with React.cloneChild
.
Note: This component is kind of deprecated in favor of using the
useTooltip
hook and Tooltip
component instead.
This hook is used to handle the positioning and visibility of the tooltip component mostly within the Tooltipped component.
All the TooltipHookOptions to configure the tooltip behavior.
A hook that's used to determine the "best" position to render the tooltip within the viewport.
Generated using TypeDoc
The props that will be created from the useTooltip hook that should be passed to the Tooltip component to work correctly.
@since 2.8.0