Documentation v8.0.25

Preview Purchase

Overview

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

Basic Example

Use data-bs-toggle="tooltip"HTML attribute to initialize a tooltip by passing any of available options as explained in Tooltip Options.
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="Tooltip on top">
    Tooltip on top
</button>

<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="right" title="Tooltip on right">
    Tooltip on right
</button>

<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Tooltip on bottom">
    Tooltip on bottom
</button>

<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="left" title="Tooltip on left">
    Tooltip on left
</button>

<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-html="true" title="<em>Tooltip</em> <u>with</u> <b>HTML</b>">
    Tooltip with HTML
</button>

Dark Mode

Use data-bs-custom-class="tooltip-dark"HTML attribute to initialize a tooltip with dark mode.
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-custom-class="tooltip-dark" data-bs-placement="top" title="Tooltip on top">
    Tooltip on top
</button>

<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-custom-class="tooltip-dark" data-bs-placement="right" title="Tooltip on right">
    Tooltip on right
</button>

<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-custom-class="tooltip-dark" data-bs-placement="bottom" title="Tooltip on bottom">
    Tooltip on bottom
</button>

<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-custom-class="tooltip-dark" data-bs-placement="left" title="Tooltip on left">
    Tooltip on left
</button>

Dimiss Options

Use custom data-bs-dimiss="click"HTML attribute to dismiss a tooltip on click.
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-dismiss="click" title="Example tooltip">
    Dismissable tooltip
</button>

Delay Options

Use custom data-bs-delay-showand data-bs-delay-hideHTML attributes to initialize a tooltip with showing and hiding delay(ms).
<button type="button" class="btn btn-secondary my-2 me-5" data-bs-toggle="tooltip" data-bs-toggle="tooltip" data-bs-delay-show="1000" data-bs-placement="top" title="Example tooltip">
    Show delay: 1000ms
</button>

<button type="button" class="btn btn-secondary my-2 me-5" data-bs-toggle="tooltip" data-bs-toggle="tooltip" data-bs-delay-hide="1000" data-bs-placement="top" title="Example tooltip">
    Hide delay: 1000ms
</button>

Explore Metronic

Demo1

Demo2

Demo3

Demo4

Demo5

Demo6

Demo7

Demo8

Demo9

Demo10

demo
Coming soon

Demo11

Demo12

demo
Coming soon

Demo13

Demo14

demo
Coming soon

Demo15

demo
Coming soon

Demo16

demo
Coming soon

Demo17

demo
Coming soon

Demo18

demo
Coming soon

Demo19

demo
Coming soon

Demo20

demo
Coming soon