Tooltip
View Source
Used to display a minimal amount of helpful information.
Custom Tooltip
Props
Accepts Popover props.
Use the tooltip
key in ThemeProvider
to customize the default properties of this component.
As
object
Passes props to Popover’s anchorElement
.
any
The child becomes the trigger for the tooltip, unless it is overridden with popoverProps={{relativeTo: ref}}
.
number
The amount of time in milliseconds before the tooltip closes.
boolean
Controls whether the Popover is rendered as open or closed.
boolean
Attempts to keep popover in view clipping edges if too large.
number
The amount of time in milliseconds before the tooltip opens.
Placement
'top-start'
| 'top'
| 'top-end'
| 'right-start'
| 'right'
| 'right-end'
| 'bottom-start'
| 'bottom'
| 'bottom-end'
| 'left-start'
| 'left'
| 'left-end'
Where to place the popover.
object
Accepts any valid Popover props.
HTMLElement | string
Where to render the composed popover into. Accepts an HTML element or selector.
Uses the closest fixed parent or document.body
by default. This will only
be computed once on initial render.
any
The title of the tooltip. Accepts a string or a React element.
boolean
Reveals the tooltip when the cloned child receives focus.
boolean
Reveals the tooltip when the cloned child is hovered.
number
Set a specific z-index for Tooltip. (defaults to 10000
)
This option can be helpful in adjusting elements that overlap visually.