Popovers
Documentation and examples for adding Bootstrap popovers, like those found in iOS, to any element on your site.
Default Popovers
<!--example-->
<button type="button" class="btn btn-primary" data-bs-toggle="popover" title="Popover title"
data-bs-content="And here's some amazing content. It's very engaging. Right?">Click to toggle
popover</button>
Four directions
<!--four directions-->
<!--top-->
<button type="button" class="btn btn-secondary mb-2 mb-lg-0" data-bs-container="body"
data-bs-toggle="popover" data-bs-placement="top"
data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on top
</button>
<!--right-->
<button type="button" class="btn btn-secondary mb-2 mb-lg-0" data-bs-container="body"
data-bs-toggle="popover" data-bs-placement="right"
data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on right
</button>
<!--bottom-->
<button type="button" class="btn btn-secondary mb-2 mb-lg-0" data-bs-container="body"
data-bs-toggle="popover" data-bs-placement="bottom" data-bs-content="Vivamus
sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on bottom
</button>
<!--left-->
<button type="button" class="btn btn-secondary" data-bs-container="body" data-bs-toggle="popover"
data-bs-placement="left"
data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on left
</button>
Custom popovers
<!--custom popovers-->
<button type="button" class="btn btn-secondary" data-bs-toggle="popover" data-bs-placement="right"
data-bs-custom-class="custom-popover" data-bs-title="Custom popover"
data-bs-content="This popover is themed via CSS variables.">
Custom popover
</button>
Dismiss on next click
<!--dismiss on next click-->
<a tabindex="0" class="btn btn-danger" role="button" data-bs-toggle="popover"
data-trigger="focus" title="Dismissible popover"
data-bs-content="And here's some amazing content. It's very engaging. Right?">Dismissible
popover</a>
Disabled elements
<!--disabled element-->
<span class="d-inline-block" tabindex="0" data-bs-toggle="popover" data-bs-trigger="hover focus"
data-bs-content="Disabled popover">
<button class="btn btn-primary" type="button" disabled>Disabled button</button>
</span>