# vue-packery-plugin

> a vue.js packery plugin

Latest version **1.4.8** (published 2019-04-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-packery-plugin
pnpm add vue-packery-plugin
yarn add vue-packery-plugin
bun add vue-packery-plugin
```

## 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.4.8 |
| Published | 2019-04-29 |
| First published | 2017-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1018.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Jan Thoma |
| Maintainers | jan_thoma |
| Keywords | packery, vue, plugin |

## Links

- npm: https://www.npmjs.com/package/vue-packery-plugin
- Repository: https://github.com/t-k-f/vue-packery-plugin
- Homepage: https://github.com/t-k-f/vue-packery-plugin#readme
- Issues: https://github.com/t-k-f/vue-packery-plugin/issues
- npm.io page: https://npm.io/package/vue-packery-plugin

## Dependencies (1)

- [packery](https://npm.io/package/packery.md) ^2.1.1

## Recent versions

- 1.4.8 (latest) — 2019-04-29
- 1.4.7 — 2019-04-05
- 1.4.6 — 2019-03-14
- 1.4.5 — 2019-02-19
- 1.4.4 — 2019-02-19
- 1.4.3 — 2019-01-08
- 1.4.2 — 2019-01-08
- 1.4.1 — 2019-01-07
- 1.3.1 — 2019-01-07
- 1.3.0 — 2018-06-27
- 1.2.11 — 2018-06-05
- 1.2.10 — 2018-06-01
- 1.2.9 — 2018-06-01
- 1.2.8 — 2018-06-01
- 1.2.7 — 2018-06-01
- … 16 more at https://npm.io/package/vue-packery-plugin/versions

## README

# Vue.js Packery Plugin

A wrapper for the beloved packery for vue.js

### Installing

```
npm install --save vue-packery-plugin
```

then

```
import VuePackeryPlugin from 'vue-packery-plugin'

Vue.use(VuePackeryPlugin)
```

### Usage

```
<div v-packery='{itemSelector: ".packery-item", percentPosition: true}'>

    <div v-packery-item class='packery-item'></div>
    <div v-packery-item class='packery-item'></div>
    <div v-packery-item class='packery-item'></div>

</div>
```

### Receive events

All the packery events are emitted you can make use of it the following Way:

```
<div v-packery='{itemSelector: ".packery-item", percentPosition: true}' @layoutComplete='doStuff()'>
```

### Manually trigger layout

```
import {packeryEvents} from 'vue-packery-plugin'

...

packeryEvents.$emit('layout', MY_PACKERY_EL)
```
### Draggabilly

If you need draggabilly support follow instructions here [Vue.js Packery Draggabilly Plugin](https://github.com/t-k-f/vue-draggabilly-plugin).

### Examples

Examples can be run with [Vue CLI 3](https://cli.vuejs.org/guide/prototyping.html).

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