Skip to content

Commit 50f5607

Browse files
author
Luke Pearson
committed
Added storybook example for row and column
1 parent ab27f21 commit 50f5607

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

stories/Grid.stories.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* eslint-disable import/no-extraneous-dependencies */
2+
import React from 'react';
3+
import { storiesOf } from '@storybook/react';
4+
import centered from '@storybook/addon-centered';
5+
import { Row, Col, Panel, Container } from '../src';
6+
7+
const stories = storiesOf('Grid', module);
8+
9+
stories
10+
.addDecorator(centered)
11+
.add('Grid', () => (
12+
<Container>
13+
<Row>
14+
<Col width="full"><Panel>full column</Panel></Col>
15+
</Row>
16+
<Row>
17+
<Col width="one-half"><Panel>one-half column</Panel></Col>
18+
<Col width="one-half"><Panel>one-half column</Panel></Col>
19+
</Row>
20+
<Row>
21+
<Col width="one-third"><Panel>one-third column</Panel></Col>
22+
<Col width="one-third"><Panel>one-third column</Panel></Col>
23+
<Col width="one-third"><Panel>one-third column</Panel></Col>
24+
</Row>
25+
<Row>
26+
<Col width="one-quarter"><Panel>one-quarter column</Panel></Col>
27+
<Col width="one-quarter"><Panel>one-quarter column</Panel></Col>
28+
<Col width="one-quarter"><Panel>one-quarter column</Panel></Col>
29+
<Col width="one-quarter"><Panel>one-quarter column</Panel></Col>
30+
</Row>
31+
</Container>
32+
));

0 commit comments

Comments
 (0)