Tooltip
Tooltips are lightweight popovers that appear when the user hovers over an element or clicks on it. By default the Tooltip will render as the "dark" variant but will respect the data-bs-theme
attribute to change the color scheme. This component combines React Bootstrap OverlayTrigger and Tooltip.
See React Bootstrap/Overlays for full documentation and props.
Variants
When the variant prop is used it will supersede the data-bs-theme
attribute.
Placement
The placement
prop can be used to change the position of the Tooltip relative to its trigger element.
Basic placements
Basic placements will position the arrow centered on the Tooltip.
Variation placements
Variation placements will position the arrow offset from the center of the Tooltip.
Portal control
With the container
prop you can provide the DOM element you want the Tooltip to be appended to.