0.5.0 • Published 2 years ago

vue-grid-responsive v0.5.0

Weekly downloads
207
License
MIT
Repository
github
Last release
2 years ago

Responsive grid system based on Bootstrap for Vue.

npm version License: MIT Build 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>

Using the hidden component:

<template>
  <div>
    <hidden :xs="true">
      hidden xs
    </hidden>
    <hidden :md="true">
      hidden md
    </hidden>
    <hidden :xl="true">
      hidden xl
    </hidden>
  </div>
</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

PropDefaultTypeDescription
gutter-numberGrid spacing in the container
columns12numberSetting columns count in the container

Column Component props

PropDefaultTypeDescription
xs-numberSize in extra small screen
sm-numberSize in small screen
md-numberSize in medium screen
lg-numberSize in large screen
xl-numberSize in extra large screen

Hidden Component props

PropDefaultTypeDescription
xs-booleanHidden in extra small size
sm-booleanHidden in small size
md-booleanHidden in medium size
lg-booleanHidden in large size
xl-booleanHidden in extra large size

NPM Statistics

Download stats for this NPM package

NPM

License

Vue Grid Responsive is open source software licensed as MIT.

1.3.0

2 years ago

0.5.0

2 years ago

1.2.1

3 years ago

0.4.1

3 years ago

1.2.0

3 years ago

0.4.0

3 years ago

1.0.2

3 years ago

1.1.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago