# vue-onclick-outside

> Trigger function when clicking outside a component for Vue.js

Latest version **0.1.0** (published 2016-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-onclick-outside
pnpm add vue-onclick-outside
yarn add vue-onclick-outside
bun add vue-onclick-outside
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-08-24 |
| First published | 2016-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | EGOIST |
| Maintainers | kchan |
| Keywords | vue, click-outside |

## Links

- npm: https://www.npmjs.com/package/vue-onclick-outside
- Repository: https://github.com/egoist/vue-onclick-outside
- Homepage: https://github.com/egoist/vue-onclick-outside#readme
- Issues: https://github.com/egoist/vue-onclick-outside/issues
- npm.io page: https://npm.io/package/vue-onclick-outside

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-08-24

## README

# onclick-outside

> Trigger function when clicking outside a component for Vue.js

Vue 2.0 compatible, see demo: https://egoistian.com/onclick-outside

## Install

```bash
$ npm install --save onclick-outside
```

## Usage

```vue
<template>
  <click-outside :handler="handleClickOutside">
    <button>don't click me, click outside!</button>
  </click-outside>
</template>

<script>
  import ClickOutside from 'onclick-outside'

  export default {
    methods: {
      handleClickOutside(e) {
        console.log('hey, why did you touch outside?')
      }
    },
    components: {
      ClickOutside
    }
  }
</script>
```

## License

MIT &copy; [EGOIST](https://github.com/egoist)

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