Bootstrap 5 Basic
Bootstrap 5 Flexbox
Tooltips in Bootstrap 5 are small popup boxes that appear when the user hovers over, focuses on, or taps an element.
To enable a tooltip, you need to add the data-bs-toggle="tooltip"
attribute to the target element (e.g., a button or link) and use the title
attribute to specify the content that will be displayed.
Try it yourself
You can control the placement of the tooltip by using the data-bs-placement
attribute. The possible values are: top
,left
,right
,bottom
Try it yourself
To disable a tooltip, you can use the disable
method in JavaScript:
Try it yourself
If you want the tooltip to contain HTML content (like links, images, etc.), you can use the html
option in JavaScript.
Try it yourself
You can adjust the delay, animation, and other options when initializing the tooltip.
Try it yourself