Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Latest commit

 

History

History
62 lines (45 loc) · 1.33 KB

README.md

File metadata and controls

62 lines (45 loc) · 1.33 KB

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
  # or
  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