Tooltip

Classes Information

ClassNameDescription
tooltip Baseclass for tooltip
tooltip-topSet position to top
tooltip-bottomSet position to bottom
tooltip-leftSet position to left
tooltip-rightSet position to right
tooltip-primarySet primary color
tooltip-secondarySet secondary color
tooltip-successSet success color
tooltip-errorSet error color
tooltip-warningSet warning color
tooltip-openOpen tooltip by default
tooltip-clickOpen tooltip on click

Basic Usage

Example Code

html
<span class="tooltip tooltip-right" data-tooltip="Basic">
  <button class="btn">Basic</button>
</span>

Directions

Example Code

html
<span class="tooltip tooltip-top" data-tooltip="Top">
    <button class="btn">top</button>
</span>

<span class="tooltip tooltip-bottom" data-tooltip="Bottom">
    <button class="btn">bottom</button>
</span>

<span class="tooltip tooltip-left" data-tooltip="Left">
    <button class="btn">left</button>
</span>
<span class="tooltip tooltip-right" data-tooltip="Right">
    <button class="btn">right</button>
</span>

Colors

Example Code

html
<span class="tooltip tooltip-left tooltip-primary" data-tooltip="left">
  <button class="btn">primary</button>
</span>

<span class="tooltip tooltip-bottom tooltip-secondary" data-tooltip="Bottom">

  <button class="btn">secondary</button>
</span>

<span class="tooltip tooltip-top tooltip-success" data-tooltip="Top">
  <button class="btn">success</button>
</span>

<span class="tooltip tooltip-bottom tooltip-warning" data-tooltip="Bottom">
  <button class="btn">warning</button>
</span>

<span class="tooltip tooltip-right tooltip-error" data-tooltip="Right">
  <button class="btn">error</button>
</span>

Open

Example Code

html
<span class="tooltip tooltip-top tooltip-success tooltip-open" data-tooltip="Top">
    <button class="btn">Basic</button>
</span>

On Click

Example Code

html
<span class="tooltip-click tooltip-top" data-tooltip="On Click">

    <button class="btn">On Click</button>

</span>