1.0.4 • Published 3 years ago

tooltip-directive v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Tooltip-directive

Create tooltips easily with just a directive.

Usage

Vue 3

import { createApp } from "vue"
import App from "./App.vue"
import directive from "tooltip-directive"
const app = createApp(App)
app.directive("tooltip", directive)
app.mount("#app")

Then, you can use the directive in any component

<template>
  <button v-tooltip="{text: 'Informative text', position: 'up'}"></button>
</template>

Props

PropertyAccepted values
textstring
position"up", "down", "left", "right"

Contributors

License & copyright ©

  • Sebastián Castañeda
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago