Loading...
Customize

Customize theme

Colors
Primary
Warning
Info
Success
Danger
Typography (1rem = 16px)
Borders / Rounding

Menu

Content

Components

Utilities

Buy now

Popovers

A pop-up box that appears when the user clicks/hovers on an element.

Bootstrap docs

Static popovers

Live demo

<!-- Popover on top -->
<button type="button" class="btn btn-outline-secondary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-trigger="hover" title="Popover on top" data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.">Popover on top</button>

<!-- Popover on right -->
<button type="button" class="btn btn-outline-secondary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="right" data-bs-trigger="hover" title="Popover on right" data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.">Popover on right</button>

<!-- Popover on bottom -->
<button type="button" class="btn btn-outline-secondary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="bottom" data-bs-trigger="hover" title="Popover on bottom" data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.">Popover on right</button>

<!-- Popover on left -->
<button type="button" class="btn btn-outline-secondary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="left" data-bs-trigger="hover" title="Popover on left" data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.">Popover on right</button>
// Popover on top
button(type="button", class="btn btn-outline-secondary", data-bs-container="body", data-bs-toggle="popover", data-bs-placement="top", data-bs-trigger="hover", title="Popover on top", data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.")
  | Popover on top

// Popover on right
button(type="button", class="btn btn-outline-secondary", data-bs-container="body", data-bs-toggle="popover", data-bs-placement="right", data-bs-trigger="hover", title="Popover on right", data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.")
  | Popover on right

// Popover on bottom
button(type="button", class="btn btn-outline-secondary", data-bs-container="body", data-bs-toggle="popover", data-bs-placement="bottom", data-bs-trigger="hover", title="Popover on bottom", data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.")
  | Popover on bottom

// Popover on left
button(type="button", class="btn btn-outline-secondary", data-bs-container="body", data-bs-toggle="popover", data-bs-placement="left", data-bs-trigger="hover", title="Popover on left", data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.")
  | Popover on left

Toggle on click / hover

<!-- Toggle popover on click (click is default trigger) -->
<button type="button" class="btn btn-primary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" title="Popover on click" data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.">Toggle popover on click</button>

<!-- Toggle popover on hover -->
<button type="button" class="btn btn-outline-primary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-trigger="hover" title="Popover on hover" data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.">Toggle popover on hover</button>
// Toggle popover on click (click is default trigger)
button(type="button", class="btn btn-primary", data-bs-container="body", data-bs-toggle="popover", data-bs-placement="top", title="Popover on click", data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.")
  | Toggle popover on click

// Toggle popover on hover
button(type="button", class="btn btn-outline-primary", data-bs-container="body", data-bs-toggle="popover", data-bs-placement="right", data-bs-trigger="hover", title="Popover on hover", data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus ornare.")
  | Toggle popover on hover