|
1 | 1 | import React from 'react'; |
2 | | -import { Row, Col, Panel, Container } from '../src'; |
3 | | - |
| 2 | +import { Row, Col, Card, Container } from '../src'; |
4 | 3 |
|
5 | 4 | export const Grid = () => ( |
6 | 5 | <Container> |
7 | 6 | <Row> |
8 | | - <Col width="full"><Panel>full column</Panel></Col> |
| 7 | + <Col width="full"> |
| 8 | + <Card>full column</Card> |
| 9 | + </Col> |
9 | 10 | </Row> |
10 | 11 | <Row> |
11 | | - <Col width="one-half"><Panel>one-half column</Panel></Col> |
12 | | - <Col width="one-half"><Panel>one-half column</Panel></Col> |
| 12 | + <Col width="one-half"> |
| 13 | + <Card>one-half column</Card> |
| 14 | + </Col> |
| 15 | + <Col width="one-half"> |
| 16 | + <Card>one-half column</Card> |
| 17 | + </Col> |
13 | 18 | </Row> |
14 | 19 | <Row> |
15 | | - <Col width="one-third"><Panel>one-third column</Panel></Col> |
16 | | - <Col width="one-third"><Panel>one-third column</Panel></Col> |
17 | | - <Col width="one-third"><Panel>one-third column</Panel></Col> |
| 20 | + <Col width="one-third"> |
| 21 | + <Card>one-third column</Card> |
| 22 | + </Col> |
| 23 | + <Col width="one-third"> |
| 24 | + <Card>one-third column</Card> |
| 25 | + </Col> |
| 26 | + <Col width="one-third"> |
| 27 | + <Card>one-third column</Card> |
| 28 | + </Col> |
18 | 29 | </Row> |
19 | 30 | <Row> |
20 | | - <Col width="one-quarter"><Panel>one-quarter column</Panel></Col> |
21 | | - <Col width="one-quarter"><Panel>one-quarter column</Panel></Col> |
22 | | - <Col width="one-quarter"><Panel>one-quarter column</Panel></Col> |
23 | | - <Col width="one-quarter"><Panel>one-quarter column</Panel></Col> |
| 31 | + <Col width="one-quarter"> |
| 32 | + <Card>one-quarter column</Card> |
| 33 | + </Col> |
| 34 | + <Col width="one-quarter"> |
| 35 | + <Card>one-quarter column</Card> |
| 36 | + </Col> |
| 37 | + <Col width="one-quarter"> |
| 38 | + <Card>one-quarter column</Card> |
| 39 | + </Col> |
| 40 | + <Col width="one-quarter"> |
| 41 | + <Card>one-quarter column</Card> |
| 42 | + </Col> |
24 | 43 | </Row> |
25 | 44 | </Container> |
26 | 45 | ); |
27 | 46 |
|
28 | 47 | export default { |
29 | 48 | title: 'Components/Grid', |
30 | | - |
31 | 49 | }; |
0 commit comments