☞ Vue.JS Tutorial: Learn Vue.js from Scratch
☞ Javascript Tutorial for Absolute Beginners
npm install @morioh/v-tooltip
import '@morioh/v-tooltip/dist/v-tooltip.css';
import Vue from 'vue'
import Tooltip from '@morioh/v-tooltip'
// global register
Vue.use(Tooltip);
<h5>Hover</h5>
<div class="form-group">
<button type="button" class="btn btn-primary"
v-tooltip="{ when:'hover', placement: 'top', content: 'Html content'}">Top</button>
<button type="button" class="btn btn-primary"
v-tooltip="{ when:'hover', placement: 'bottom', content: 'Html content'}">Bottom</button>
<button type="button" class="btn btn-primary"
v-tooltip="{ when:'hover', placement: 'left', content: 'Html content'}">Left</button>
<button type="button" class="btn btn-primary"
v-tooltip="{ when:'hover', placement: 'right', content: 'Html content'}">Right</button>
</div>
<h5>Click</h5>
<div class="form-group">
<button type="button" class="btn btn-primary"
v-tooltip="{ when: 'click', placement: 'top', content: 'Html content'}">Top</button>
<button type="button" class="btn btn-primary"
v-tooltip="{ when: 'click', placement: 'bottom', content: 'Html content'}">Bottom</button>
<button type="button" class="btn btn-primary"
v-tooltip="{ when: 'click', placement: 'left', content: 'Html content'}">Left</button>
<button type="button" class="btn btn-primary"
v-tooltip="{ when: 'click', placement: 'right', content: 'Html content'}">Right</button>
</div>
<h5>Focus</h5>
<div class="row">
<div class="col-3">
<div class="form-group">
<input type="text" id="i-top" class="form-control"
v-tooltip="{ when: 'focus', placement: 'top', content: 'Html content top'}">
</div>
</div>
<div class="col-3">
<div class="form-group">
<input type="text" id="i-bottom" class="form-control"
v-tooltip="{ when: 'focus', placement: 'bottom', content: 'Html content bottom'}">
</div>
</div>
<div class="col-3">
<div class="form-group">
<input type="text" id="i-left" class="form-control"
v-tooltip="{ when: 'focus', placement: 'left', content: 'Html content left'}">
</div>
</div>
<div class="col-3">
<div class="form-group">
<input type="text" id="i-right" class="form-control"
v-tooltip="{ when: 'focus', placement: 'right', content: 'Html content right'}">
</div>
</div>
</div>