vue-follow-tooltip

Tiny vue 3 tooltip directive
3,019 6
Install
npm install vue-follow-tooltip
Latest Version:1.0.1
Vue:3
License:ISC
Last Updated:May 15, 2026
Links: GitHub  ·  npm
Maintainer: gvguy

vue-follow-tooltip

Tiny tooltip directive for Vue 3

Lets you create tooltips that follow cursor

🚀  Live demo  🚀

Codepen

Why

Simple

No dependencies. No under-the-hood libraries. Just a couple of Vanilla JS objects

Customizable

There are a few things you can customize with options

No need to override default styles, because there aren't any. Just add your CSS as usual

More about styles

More about options

Installation

NPM

npm i vue-follow-tooltip
import Tooltip from 'vue-follow-tooltip'

CDN

<script src="https://unpkg.com/vue-follow-tooltip@latest"></script>

Usage

// install it with use()

app.use(Tooltip)

// OR register the directive manually

app.directive('tooltip', Tooltip)
<button v-tooltip="'Look! It\'s a button, let\'s push it!">DON'T PUSH</button>

Options

You can pass options like this:

app.use(Tooltip, {
   delay: 500,
   center: true,
   offsetX: 0,
   offsetY: 20
})

The values in the example are the default values

Property names are pretty self-explanatory

Styles

The tooltip gets a class .tooltip

Use it to apply styles to it like this:

.tooltip {
   background: rgba(1, 1, 1, 0.7);
   padding: 10px;
   border-radius: 3px;
   color: #fbfbfb;
   font-family: sans-serif;
   transition: opacity 0.3s;
}

Styling guidelines

  • There are no default styles, however, if you specify top, left, opacity & position they will have no effect
  • Dont use transition: all .., it will mess with how the tooltip follows the cursor

License

MIT

Related Packages

vue-directive-tooltip

Vue.js tooltip directive

272,883 169
@maximbigler/vue-big-tooltip

Tooltip directive, component and composable for Vue 3

196 0
v-tooltip

Easy tooltips with Vue 2.x

6,036,683 3,460
vue3-highlight-text

a vue3 directive of highlight text

84,789
vtip

A simple tooltip based Vue

7,249

Version History

Version Released Vue License
1.0.1 ^3.0.0 ISC
1.0.0 ^3.0.0 ISC
Pre-releases (1)
Version Released Vue License
1.0.0-beta.0 ^3.0.0 ISC