vmg

vue-magic-grid

πŸ§™β€β™‚οΈπŸ”Œ Responsive Magic Grid for Vue

Showing:

Popularity

Downloads/wk

47

GitHub Stars

166

Maintenance

Last Commit

2yrs ago

Contributors

4

Package

Dependencies

0

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Vue Grid

Readme

Vue-Magic-Grid

GitHub forks GitHub stars GitHub issues GitHub license JavaScript Style Guide

This is a Vue.js port of @e-oj's Magic Grid. Please check the /test folder for a example.

If you use images, make sure they have a set height, otherwise the grid will calculate weirdly.

Setup

Install & Register the component

$ npm i -S vue-magic-grid
import MagicGrid from 'vue-magic-grid'

Vue.use(MagicGrid)

Setup with Nuxt

Create a magicgrid.js in your plugin folder

import Vue from 'vue'
import MagicGrid from 'vue-magic-grid'

Vue.use(MagicGrid)

Add the plugin in your nuxt.config.js file

plugins: [
  {src: '~/plugins/magicgrid.js'}
]

Use

<magic-grid>
  <card
    v-for="(post, i) in posts"
    :key="i"
    :title="post.title"
    :body="post.body" />
</magic-grid>

Props

PropDefaultComment
wrapperwrapperWrapper class
gap32Gap between elements
maxCols5Max number of colums
maxColWidth280Max width of columns
animatefalseAnimate item positioning

js-standard-style

Cheers, ImLinus

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100