React flexbox grid layout component.
- react-flexbox-grid.js 5.66 kB
- react-flexbox-grid.js.map 26 kB
- https://github.com/afeiship/webkit-sass-flexbox-grid.git
- override config:
$grid-padding-width:0;
$grid-responsive:();
- import react-flexbox-grid
// npm install --save afeiship/react-flexbox-grid
import {Row,Col} from 'react-flexbox-grid';
- layout your apps:
<Row align='center'>
<Col span={33}>col1 <br/> cosdjflksjdfl <br/></Col>
<Col>Left...</Col>
</Row>
<Row align='center' wrap={true}>
<Col span={33}>col1</Col>
<Col span={33}>col1</Col>
<Col span={33}>col1</Col>
<Col span={33}>col1</Col>
<Col span={33}>col1</Col>
</Row>
<Row align='center' wrap={true}>
<Col style={{width:'120px'}}>col1</Col>
<Col style={{width:'120px'}}>col1</Col>
<Col style={{width:'120px'}}>col1</Col>
<Col style={{width:'120px'}}>col1</Col>
<Col style={{width:'120px'}}>col1</Col>
<Col style={{width:'120px'}}>col1</Col>
<Col style={{width:'120px'}}>col1</Col>
<Col style={{width:'120px'}}>col1</Col>
</Row>
<Row justify='center'>
<div className="l-box">col1</div>
<div className="l-box">col1</div>
<div className="l-box">col1</div>
<div className="l-box">col1</div>
</Row>
<Row justify='around'>
<div className="l-box">col1</div>
<div className="l-box">col1</div>
<div className="l-box">col1</div>
<div className="l-box">col1</div>
</Row>
<Row justify='between'>
<div className="l-box">col1</div>
<div className="l-box">col1</div>
<div className="l-box">col1</div>
<div className="l-box">col1</div>
</Row>