@ozylog/ui-grid
v0.3.3
Published
React UI Grid with react-jss
Downloads
3
Readme
@ozylog/ui-grid
React UI Grid with react-jss
Installation
npm install @ozylog/ui-grid --save
Usage
Container
<Container />
Row
<Row />
Column
<Column />
See Bootstrap 3 Grid System for more details. Bootstrap Col Class format: col-[attr]-[attrValue]
. This is how to implement it in this react component: <Column [attr]=[attrValue] />
. e.g. <Column md='4' mdOffset='4' />
attr: [ 'xs', 'xsOffset', 'xsPull', 'xsPush', 'sm', 'smOffset', 'smPull', 'smPush', 'md', 'mdOffset', 'mdPull', 'mdPush', 'lg', 'lgOffset', 'lgPull', 'lgPush' ]
Usage Example
'use strict';
import React, {Component} from 'react';
import {Container, Row, Column} from '@ozylog/ui-grid';
export default class TestContainer extends Component {
render() {
return (
<div className='Test'>
<Container>
<Row>
<Column md='4' mdOffset='4' xs='2' xsPush='1' lgPull='2'>
Hello World!
</Column>
</Row>
</Container>
</div>
);
}
}
License
MIT