@ionited/tooltip-vue
v0.1.7
Published
A simple and lightweight tooltip library for Vue
Downloads
176
Maintainers
Readme
Tooltip-vue
A simple and lightweight tooltip library for Vue
Vue wrapper for @ionited/tooltip. Compatible with Vue 3 and Ionic Vue
Quick start
Choose your favorite option below:
Install with NPM
npm i @ionited/tooltip-vue
Get from UNPKG
https://unpkg.com/@ionited/tooltip-vue@latest/dist/index.js
Usage
To basic usage you can simply call:
<template>
<button v-tooltip title="Hello World!"></button>
</template>
Local import:
import { tooltip } from '@ionited/tooltip-vue';
export default {
...
directives: { tooltip },
...
}
or global import:
import { tooltip } from '@ionited/tooltip-vue';
const app = createApp(App)
.directive('tooltip', tooltip);
See more @ionited/tooltip
License
Copyright (c) 2021 Ion. Licensed under Mit License.