BBS5 Popover
Learn how to create popovers.
BS5 Popover
The Popover component is similar to tooltips; it is a pop-up box that appears when the user clicks on an element.
Initialization
Popovers must also be initialized with JavaScript.
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) { return new bootstrap.Popover(popoverTriggerEl) })
Closing Popovers
By default, the popover is closed when you click on the element again. Use the data-bs-trigger="focus" attribute to dismiss the popover when clicking anywhere else.
Examples
Basic Popover
html/cssdismissible Popover
html/css