vue-flex-grid
A powerful flexbox grid system for Vue.js 2.x, based on flexboxgrid and css-modules.
Installation
npm install @liqueflies/vue-flex-grid --save
yarn add @liqueflies/vue-flex-grid
Example usage
import VueGrid from '@liqueflies/vue-flex-grid'
Vue.use(VueGrid)
This instruction will install 3 components, Grid
, Row
, Column
.
Please refer to Documentation for more details.
An example of code using vue-grid
:
<grid>
<row>
<column :sm="6" :md="3">
<img src="http://unsplash.it/800x800" class="img-fluid" alt="placeholder" />
</column>
<column :sm="6" :md="3">
<img src="http://unsplash.it/800x800" class="img-fluid" alt="placeholder" />
</column>
<column :sm="6" :md="3">
<img src="http://unsplash.it/800x800" class="img-fluid" alt="placeholder" />
</column>
<column :sm="6" :md="3">
<img src="http://unsplash.it/800x800" class="img-fluid" alt="placeholder" />
</column>
</row>
</grid>
Documentation
Examples
npm run examples
Credits
Inpired by react-flexbox-grid
License
MIT
Copyright (c) 2017 Lorenzo Girardi