# micro-popover

> A tiny, fast, configurable popover in 2.5kb. [Demo](http://estrattonbailey.com/micro-popover/) 🍻

Latest version **0.5.0** (published 2017-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install micro-popover
pnpm add micro-popover
yarn add micro-popover
bun add micro-popover
```

## 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.5.0 |
| Published | 2017-08-30 |
| First published | 2017-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | estrattonbailey |
| Maintainers | estrattonbailey |
| Keywords | popover, popovers |

## Links

- npm: https://www.npmjs.com/package/micro-popover
- Repository: https://github.com/estrattonbailey/micro-popover
- Homepage: https://github.com/estrattonbailey/micro-popover#readme
- Issues: https://github.com/estrattonbailey/micro-popover/issues
- npm.io page: https://npm.io/package/micro-popover

## Dependencies (2)

- [tackjs](https://npm.io/package/tackjs.md) ^0.2.0
- [tarry.js](https://npm.io/package/tarry.js.md) ^0.4.1

## Recent versions

- 0.5.0 (latest) — 2017-08-30
- 0.4.0 — 2017-08-13
- 0.3.0 — 2017-08-08
- 0.2.0 — 2017-06-30
- 0.1.1 — 2017-06-30
- 0.1.0 — 2017-06-30
- 0.0.4 — 2017-06-27
- 0.0.3 — 2017-06-27
- 0.0.2 — 2017-06-27
- 0.0.1 — 2017-06-27

## README

# micro-popover
A tiny, fast, configurable popover in 2.5kb. [Demo](http://estrattonbailey.com/micro-popover/) 🍻

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](http://standardjs.com)

## Usage
```javascript
import Popover from 'micro-popover'

const target = document.getElementById('target')

const pop = new Popover({
  target: target,
  popover: `
    <div class="my-popover">
      <h5 class="mv0">I'm a popover!</h5>
    </div>
  `,
  position: 'left',
  transitionSpeed: 200, // for css transitions
  onChange: ({ pinned }) => {...} // boolean
})

target.addEventListener('mouseenter', pop.pin)
target.addEventListener('mouseleave', pop.unpin)
```

Required CSS:
```css
.micro-popover {
  position: absolute;
  z-index: 9999;
  top: 0; left: 0;
}
```

MIT License

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