GithubHelp home page GithubHelp logo

wangqinl / vue-grid-responsive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrelmlins/vue-grid-responsive

0.0 0.0 0.0 62 KB

Responsive grid system based on Bootstrap for Vue

Home Page: https://vue-grid-responsive.netlify.app/

License: MIT License

HTML 22.89% JavaScript 33.71% Vue 35.95% CSS 7.46%

vue-grid-responsive's Introduction

Vue Framework

Vue Grid Responsive

Responsive grid system based on Bootstrap for Vue.



npm versionLicense: MITBuild Status

Installation

NPM

npm i vue-grid-responsive
// OR
yarn add vue-grid-responsive

CDN

<script src="https://unpkg.com/vue-grid-responsive"></script>

Manual

You can also download and import it manually

<script src="/vue-grid-responsive/dist/vue-grid-reponsive.min.js"></script>

Module import

import Vue from 'vue';
import { Row, Column } from 'vue-grid-responsive';

Vue.component('row', Row);
Vue.component('column', Column);

Examples

An example of how to use the library:

<template>
  <row container gutter="{12}">
    <column xs="{12}" md="{4}" lg="{3}">
      xs=12 md=4 lg=3
    </column>
    <column xs="{12}" md="{4}" lg="{3}">
      xs=12 md=4 lg=3
    </column>
    <column xs="{12}" md="{4}" lg="{3}">
      xs=12 md=4 lg=3
    </column>
    <column xs="{12}" md="{4}" lg="{3}">
      xs=12 md=4 lg=3
    </column>
  </row>
</template>

Demo Link

Local demo:

git clone https://github.com/andrelmlins/vue-grid-responsive.git
cd vue-grid-responsive
npm && npm run dev

Properties

Component props:

Row Component props

Prop Default Type Description
gutter - number Grid spacing in the container
columns 12 number Setting columns count in the container

Column Component props

Prop Default Type Description
xs - number Size in extra small screen
sm - number Size in small screen
md - number Size in medium screen
lg - number Size in large screen
xl - number Size in extra large screen

NPM Statistics

Download stats for this NPM package

NPM

License

Vue Grid Responsive is open source software licensed as MIT.

vue-grid-responsive's People

Contributors

andrelmlins 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.