# @tegola/vue-popup

> A Vue component to create popup elements such as menus or popovers with integrated focus handling.

Latest version **1.0.1** (published 2018-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tegola/vue-popup
pnpm add @tegola/vue-popup
yarn add @tegola/vue-popup
bun add @tegola/vue-popup
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-04-19 |
| First published | 2018-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 427.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Alan Sprecacenere |
| Maintainers | tegola |
| Keywords | vue, component, popup, popover, dropdown, menu |

## Links

- npm: https://www.npmjs.com/package/@tegola/vue-popup
- npm.io page: https://npm.io/package/@tegola/vue-popup

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.5.3
- [popper.js](https://npm.io/package/popper.js.md) ^1.14.3

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads
- [react-native-modal-translucent-axton](https://npm.io/package/react-native-modal-translucent-axton.md) — 4 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-04-19
- 1.0.0 — 2018-04-19

## README

# vue-popup

A Vue component to create popup elements such as menus or popovers.
Automatically cycles focus between elements inside the popup, closes by
clicking outside of it or hitting the `esc` key.

## Installation

### Using yarn

`yarn add @tegola/vue-popup`

### Using npm

`npm i --save @tegola/vue-popup`

## Demo and Docs

`npm run serve`

## Usage

```js
import VuePopup from 'vue-popup';

Vue.component('vue-popup', VuePopup);
```

```html
<vue-popup v-model="open">
  <button>Toggle popup</button>
  <div slot="content">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit.
  </div>
</vue-popup>
```

## Build

Build configuration is located in the `poi.config.js` file, to build just run: `npm run build`, it will build to `cjs` and `umd` directories.

## Tests

This template uses karma with chai by default, you can change test settings in poi.config.js

`npm run test`  
`npm run test:watch`  
`npm run test:cov`

## License

This project is licensed under [MIT License](http://en.wikipedia.org/wiki/MIT_License)

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