Skip to main content

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.

Result
Loading...
Live Editor

Variants

When the variant prop is used it will supersede the data-bs-theme attribute.

Result
Loading...
Live Editor

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.

Result
Loading...
Live Editor

Variation placements

Variation placements will position the arrow offset from the center of the Tooltip.

Result
Loading...
Live Editor

Portal control

With the container prop you can provide the DOM element you want the Tooltip to be appended to.

Result
Loading...
Live Editor

Props