File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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+ ) ) ;
You can’t perform that action at this time.
0 commit comments