Skip to content

Commit 6062ea7

Browse files
committed
completed distributionsn of columns in a row: around, between
1 parent 684ae99 commit 6062ea7

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```jsx
2+
<Row around="xs">
3+
<Col xs={2} />
4+
<Col xs={2} />
5+
<Col xs={2} />
6+
<Row>
7+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```jsx
2+
<Row between="xs">
3+
<Col xs={2} />
4+
<Col xs={2} />
5+
<Col xs={2} />
6+
<Row>
7+
```

doc/app/components/home/index.jsx

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import {Grid, Row, Col} from 'react-flexbox-grid';
2+
import {Grid, Row} from 'react-flexbox-grid';
33
import home from './style';
44

55
import Markdown from '../markdown';
@@ -17,6 +17,8 @@ import alignEndMD from './align-end';
1717
import alignTopMD from './align-top';
1818
import alignMiddleMD from './align-middle';
1919
import alignBottomMD from './align-bottom';
20+
import distAroundMD from './dist-around';
21+
import distBetweenMD from './dist-between';
2022

2123
const Home = () => (
2224
<article>
@@ -151,6 +153,34 @@ const Home = () => (
151153
<Markdown html = {alignBottomMD} />
152154
</Row>
153155
</Section>
156+
<Section title = "Distribution" description = "Add classes to distribute the contents of a row or column.">
157+
<h3><code>.around-</code></h3>
158+
<Row>
159+
<Box type="container" xs={12}>
160+
<Row around="xs">
161+
<Box type="nested" xs={2} />
162+
<Box type="nested" xs={2} />
163+
<Box type="nested" xs={2} />
164+
</Row>
165+
</Box>
166+
</Row>
167+
<Row>
168+
<Markdown html = {distAroundMD} />
169+
</Row>
170+
<h3><code>.between-</code></h3>
171+
<Row>
172+
<Box type="container" xs={12}>
173+
<Row between="xs">
174+
<Box type="nested" xs={2} />
175+
<Box type="nested" xs={2} />
176+
<Box type="nested" xs={2} />
177+
</Row>
178+
</Box>
179+
</Row>
180+
<Row>
181+
<Markdown html = {distBetweenMD} />
182+
</Row>
183+
</Section>
154184
</Grid>
155185
</article>
156186
);

0 commit comments

Comments
 (0)