1.0.1 • Published 7 years ago
griddie v1.0.1
griddie
griddie is a very simple grid layout framework that works with IE11+ and evergreen browsers.
Getting Started
Installation
npm
# install with npm
npm install griddie --saveImport the library
import { GridContainer, GridItem } from 'griddie';Add to Vue components
export default {
components: {
GridContainer,
GridItem
},
// data, methods, mounted (), etc...
}Add to HTML template
<template>
<GridContainer>
<GridItem></GridItem>
</GridContainer>
</template>Documentation
GridContainer
GridGap
- type:
Number default:
0This is the gap between each grid item. The value should be a natural number.
- type:
GridTemplate
- type:
Number default:
1This will define how many GridItems are in the GridContainer. The value should be a natural number.
- type:
isReactive
- type:
Boolean default:
trueThis will alert all GriItems that the browser window has been resized.
- type:
GridItem
border
- type:
Boolean default:
falseThis will add a 1px solid black border around each GridItem.
- type: