Bootstrap 5 Basic
Bootstrap 5 Flexbox
In Bootstrap 5, a popover is a small overlay element that appears when users interact with an element (usually on hover or click).
The data-bs-toggle="popover"
attribute is used to trigger a popover. You must also include the title
and data-bs-content
attributes for the header and body of the popover.
Try it yourself
You can control the position of the popover using the data-bs-placement
attribute. Options include top
, right
, bottom
, left
, or auto
.
Try it yourself
Control how the popover is triggered using the data-bs-trigger
attribute: click
, hover
, focus
Try it yourself
To dismiss them when clicking outside
Try it yourself