npm

@ezraobiwale/vue-masonry

1.0.3 • Public • Published

vue-masonry

A VueJS implementation for desandro's masonry

Installation

npm i -S @ezraobiwale/vue-masonry

Usage

import Vue from 'vue'
import VueMasonry from '@ezraobiwale/vue-masonry'

Vue.use(VueMansory);

new Vue({
  // ...
});
<ul class="grid">
  <masonry :selector=".grid" :options="optionObject" :data="dataArray">
    <template slot-scope="data">
      <li class="grid-item">
        Index: {{ data.index }}<br />
        Current item: {{ data.current }}
      </li>
    </template>
  </masonry>
</ul>

Note

Package Sidebar

Install

npm i @ezraobiwale/vue-masonry

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

4.65 kB

Total Files

7

Last publish

Collaborators

  • ezraobiwale