-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChipSet.jsx
43 lines (38 loc) · 933 Bytes
/
ChipSet.jsx
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
38
39
40
41
42
43
import React from 'react';
import { Grid, GridInner, GridCell, ChipSet, Chip } from '../../../components/ui';
import { CANCEL, PETS } from '../../../constants';
const clearFix = {
margin: '1rem'
};
/**
* Demo: ChipSet
*/
const Demo = () => (
<Grid>
<GridInner style={clearFix}>
<GridCell>
<ChipSet choice>
<Chip>Cat</Chip>
<Chip>Dog</Chip>
</ChipSet>
</GridCell>
</GridInner>
<GridInner style={clearFix}>
<GridCell>
<ChipSet choice>
<Chip icon={PETS}>Cat</Chip>
<Chip icon={PETS}>Dog</Chip>
</ChipSet>
</GridCell>
</GridInner>
<GridInner style={clearFix}>
<GridCell>
<ChipSet choice>
<Chip icon={CANCEL} onClick={() => {}}>Cat</Chip>
<Chip icon={CANCEL} onClick={() => {}}>Dog</Chip>
</ChipSet>
</GridCell>
</GridInner>
</Grid>
);
export default Demo;