Documentation v8.0.36

Preview Downloads Purchase

Overview

Metronic customizes the Bootstrap Popover  through the SASS variables in src/sass/components/_variables.scssand custom SASS code in src/sass/components/_popovers.scss. Bootstrap Popover are globally initialized by src/js/layout/app.jswrapper script via data attribute data-bs-toggle="popover". .

Basic Example

Use data-bs-toggle="popover"HTML attribute to initialize a popover by passing any of available options as explained in Popover Options.
<button type="button" class="btn btn-secondary my-2 me-5" data-bs-toggle="popover" data-bs-placement="top" title="Popover on top" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Popover on top
</button>

<button type="button" class="btn btn-secondary my-2 me-5" data-bs-toggle="popover" data-bs-placement="right" title="Popover on right" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Popover on right
</button>

<button type="button" class="btn btn-secondary my-2 me-5" data-bs-toggle="popover" data-bs-placement="bottom" title="Popover on bottom" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Popover on bottom
</button>

<button type="button" class="btn btn-secondary my-2 me-5" data-bs-toggle="popover" data-bs-placement="left" title="Popover on left" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Popover on left
</button>

<button type="button" class="btn btn-secondary my-2" data-bs-toggle="popover" data-bs-html="true" title="<span><em>Popover</em> <u>title with</u> <b>HTML</b></span>" data-bs-content="And here's some amazing content. It's very <b class='text-danger'>engaging</b>. Right?">
    Popover with HTML
</button>

Dark Mode

Use data-bs-custom-class="popover-dark"HTML attribute to initialize a popover with dark mode.
<button type="button" class="btn btn-secondary" data-bs-toggle="popover" data-bs-custom-class="popover-dark" data-bs-placement="top" title="Popover on top" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Popover on top
</button>

<button type="button" class="btn btn-secondary" data-bs-toggle="popover" data-bs-custom-class="popover-dark" data-bs-placement="right" title="Popover on right" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Popover on right
</button>

<button type="button" class="btn btn-secondary" data-bs-toggle="popover" data-bs-custom-class="popover-dark" data-bs-placement="bottom" title="Popover on bottom" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Popover on bottom
</button>

<button type="button" class="btn btn-secondary" data-bs-toggle="popover" data-bs-custom-class="popover-dark" data-bs-placement="left" title="Popover on left" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Popover on left
</button>

Delay Options

Use custom data-bs-delay-showand data-bs-delay-hideHTML attributes to initialize a popover with showing and hiding delay(ms).
<button type="button" class="btn btn-secondary my-2 me-5" data-bs-toggle="popover" data-bs-delay-show="1000" title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Show delay: 1000ms 
</button>

<button type="button" class="btn btn-secondary my-2 me-5" data-bs-toggle="popover" data-bs-delay-hide="1000" title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Hide delay: 1000ms 
</button>

Dismiss

Use custom data-bs-dismiss="true"HTML attribute to initialize a popover with showing and hiding delay(ms).
<button type="button" class="btn btn-secondary my-2 me-5" data-bs-toggle="popover" data-bs-dismiss="true" title="Dismissable popover" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Dismiss for default mode
</button>

<button type="button" class="btn btn-secondary my-2 me-5" data-bs-toggle="popover" data-bs-dismiss="true" title="Dismissable popover" data-bs-content="And here's some amazing content. It's very engaging. Right?">
    Dismiss for dark mode
</button>

Explore

Metronic Licenses

License FAQs
Regular License
For single end product used by you or one client
$ 39
Extended License
For single SaaS app with paying users
$ 939
Custom License
Reach us for custom license offers.
Buy Now
Learn & Get Inspired

Support at devs.keenthemes.com

Join our developers community to find answer to your question and help others. FAQs
Get Support
Documentation & Videos
From guides and video tutorials, to live demos and code examples to get started.
Plugins & Components
Check out our 300+ in-house components and customized 3rd-party plugins.
Layout Builder
Build your layout, preview it and export the HTML for server side integration.
Metronic Downloads
Download your prefered framework and demo with one click.
What's New
Latest features and improvements added with our users feedback in mind.
Buy now