# vdirs

> Helper directives for Vue.

Latest version **0.1.8** (published 2022-04-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install vdirs
pnpm add vdirs
yarn add vdirs
bun add vdirs
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2022-04-10 |
| First published | 2020-11-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 18 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | 07akioni |
| Maintainers | 07akioni |

## Links

- npm: https://www.npmjs.com/package/vdirs
- npm.io page: https://npm.io/package/vdirs

## Dependencies (1)

- [evtd](https://npm.io/package/evtd.md) ^0.2.2

## Recent versions

- 0.1.8 (latest) — 2022-04-10
- 0.1.7 — 2021-12-28
- 0.1.6 — 2021-12-28
- 0.1.5 — 2021-12-27
- 0.1.4 — 2021-06-02
- 0.1.2 — 2021-04-05
- 0.1.0 — 2021-02-19
- 0.0.3 — 2020-11-26
- 0.0.2 — 2020-11-26
- 0.0.1 — 2020-11-26

## README

# vdirs
Helper directives for Vue.

## Installation
```bash
npm install --save-dev vdirs
```

## Docs
### zindexable
**Description**

Set largest z-index on the most recently displayed element. 

**Usage**
```js
import { zindexable } from 'vdirs'

export default {
  directives: {
    zindexable
  }
}
```
```html
<div
  v-zindexable="{
    enabled: boolean,
    zIndex?: number
  }"
/>
```

### clickoutside, mousemoveoutside
**Description**

As the names.

**Usage**
```js
import { clickoutside, mousemoveoutside } from 'vdirs'

export default {
  directives: {
    clickoutside,
    mousemoveoutside
  }
}
```
```html
<div
  v-clickoutside="(e: MouseEvent) => any"
  v-mousemoveoutside="(e: MouseEvent) => any"
/>
```

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