# simple-vue-tooltip

> Instantly add tooltips to your existing vue html elements

Latest version **1.0.3** (published 2020-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-vue-tooltip
pnpm add simple-vue-tooltip
yarn add simple-vue-tooltip
bun add simple-vue-tooltip
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-04-06 |
| First published | 2020-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Okwu Joscelyn Kinikachi |
| Maintainers | kachi56 |
| Keywords | vue, tooltip |

## Links

- npm: https://www.npmjs.com/package/simple-vue-tooltip
- Repository: https://github.com/joscelyn56/simple-vue-tooltip
- Homepage: https://github.com/joscelyn56/simple-vue-tooltip#readme
- Issues: https://github.com/joscelyn56/simple-vue-tooltip/issues
- npm.io page: https://npm.io/package/simple-vue-tooltip

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.6.11

## Recent versions

- 1.0.3 (latest) — 2020-04-06
- 1.0.2 — 2020-04-06
- 1.0.1 — 2020-01-20
- 1.0.0 — 2020-01-20

## README

# Simple Vue Tooltip

Instantly add tooltips to your existing vue html elements

## Setup
Install using npm
```
npm i simple-vue-tooltip
```

import into Vue application
```
import Vue from 'vue'
import Tooltip from 'simple-vue-tooltip';
```

Add module to Vue
```
Vue.use(Tooltip);
```

## Usage
Insert into html element using vue directive e.g button
```html
<button
  v-tooltip="{
    tip:'This is a clickable button',
    position: 'bottom'
  }"
  ...
>
  Click Me
</button>
```

The v-tooltip directive accepts an object containing 2 properties:
* tip: a custom message to display
* position: this specifies the position to display tip relative to the containing element

**Below are the list of positions currently available**
* bottom: this aligns the tooltip to bottom center of element
* bottom-left: this aligns the tooltip to bottom left of element
* bottom-right: this aligns the tooltip to bottom right of element

---
_Source: https://npm.io/package/simple-vue-tooltip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
