GithubHelp home page GithubHelp logo

giovannirodighiero / vue-grid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liqueflies/vue-grid

0.0 2.0 0.0 0 B

A powerful flexbox grid system for Vue.js 2.x, built with inline-styles

License: MIT License

JavaScript 92.97% HTML 7.03%

vue-grid's Introduction

vue-grid

A powerful flexbox grid system for Vue.js 2.x, built with inline-styles

Installation

  npm install @liqueflies/vue-grid --save
  # or
  yarn add @liqueflies/vue-grid

Introduction

vue-grid use principles of bootstrap layout providing a responsive grid made with components, props and inline-styles.

Example usage

import VueGrid from '@liqueflies/vue-grid'

Vue.use(VueGrid, { /* your configuration */ })

This object is the default confguration representing the properties that you can override:

{
  columns: 12,
  gutter: 16,
  breakpoints: {
    xs: 320,
    sm: 576,
    md: 768,
    lg: 992,
    xl: 1200
  },
}

This instruction will install 4 components, Container, Row, Column, Hidden. Please refer to Documentation for more details.

An example of code using vue-grid:

<container xl="1200">
  <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>
  <hidden :from="sm" :until="lg">
    This is only visible from sm to lg breakpoints
  </hidden>
</container>

Documentation

Examples

  npm run examples

License

MIT

Copyright (c) 2017 Lorenzo Girardi

vue-grid's People

Contributors

liqueflies avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.