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.
AsobjectPasses props to Popover’s anchorElement.
anyThe child becomes the trigger for the tooltip, unless it is overridden with popoverProps={{relativeTo: ref}}.
numberThe amount of time in milliseconds before the tooltip closes.
booleanControls whether the Popover is rendered as open or closed.
booleanAttempts to keep popover in view clipping edges if too large.
numberThe 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.
objectAccepts any valid Popover props.
booleanDetermines if the tooltip should use innerRef instead of ref. Default is true.
This is useful when the anchor element is not a Tapestry React component.
HTMLElement | stringWhere 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.
anyThe title of the tooltip. Accepts a string or a React element.
booleanReveals the tooltip when the cloned child receives focus.
booleanReveals the tooltip when the cloned child is hovered.
numberSet a specific z-index for Tooltip. (defaults to 10000)
This option can be helpful in adjusting elements that overlap visually.