0.3.3 • Published 7 years ago

@ozylog/ui-grid v0.3.3

Weekly downloads
1
License
SEE LICENSE IN LI...
Repository
github
Last release
7 years ago

@ozylog/ui-grid

React UI Grid with react-jss

Travis npm

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

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago