forked from reactstrap/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLayout.js
More file actions
37 lines (36 loc) · 1.13 KB
/
Copy pathLayout.js
File metadata and controls
37 lines (36 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import { Container, Row, Col } from 'reactstrap';
export default class Example extends React.Component {
render() {
return (
<Container>
<Row>
<Col>col-xs-12</Col>
</Row>
<Row>
<Col xs="6">col-xs-6</Col>
<Col xs="6">col-xs-6</Col>
</Row>
<Row>
<Col xs>.col-xs (flexbox)</Col>
<Col xs>.col-xs (flexbox)</Col>
</Row>
<Row>
<Col xs="6" sm="4">col-xs-6 col-sm-4</Col>
<Col xs="6" sm="4">col-xs-6 col-sm-4</Col>
<Col sm="4">col-xs-12 col-sm-4</Col>
</Row>
<Row>
<Col sm={{ size: 6, push: 2, pull: 2, offset: 1 }}>.col-xs-12 .col-sm-6 .col-sm-push-2 .col-sm-pull-2 .col-sm-offset-2</Col>
</Row>
<Row>
<Col sm="12" md={{ size: 8, offset: 2 }}>.col-xs-12 .col-sm-12 .col-md-6 .col-md-offset-3</Col>
</Row>
<Row>
<Col sm={{ size: 'auto', offset: 1 }}>.col-sm .col-sm-offset-1</Col>
<Col sm={{ size: 'auto', offset: 1 }}>.col-sm .col-sm-offset-1</Col>
</Row>
</Container>
);
}
}