1.0.2 • Published 6 years ago

lari-simple-tooltip v1.0.2

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

About

Simple Vuejs tooltip plugin. At the moment it needs tailwindcss

It applies this class list: 'bg-black text-xs px-2 leading-normal py-1 rounded absolute text-grey-light max-w-xs'

Installation

npm install lari-simple-tooltip --save

Demo

Usage

import SimpleTooltip from 'lari-simple-tooltip'


Vue.use(SimpleTooltip)

Simple usage:

Display tooltip on top

<button v-tooltip="'Tooltip content'">Submit</button>

Define tooltip position

<button v-tooltipi:right="'Tooltip content'">Submit</button>

Available options: left, right, top, bottom

Display tooltip by default (no mouseover/out events)

<button v-tooltip.prevent="'Tooltip content'">Submit</button>

Display tooltip on click

<button v-tooltip.click="'Tooltip content'">Submit</button>
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago