1 | import * as React from 'react';
|
2 | import { storiesOf } from '@storybook/react';
|
3 | import { FastSelection, GlobalStyle } from '../src';
|
4 |
|
5 | storiesOf('FastSelection', module)
|
6 | .add('Default', () => (
|
7 | <React.Fragment>
|
8 | <GlobalStyle />
|
9 | <FastSelection
|
10 | items={[
|
11 | {id: 1, value: 'V', label: 'um'},
|
12 | {id: 2, value: 'V', label: 'dois'},
|
13 | {id: 3, value: 'V', label: 'tres'},
|
14 | {id: 4, value: 'V', label: 'quatro'},
|
15 | ]}
|
16 | selecteds={[{}]}
|
17 | onChange={() => null}
|
18 | />
|
19 | </React.Fragment>
|
20 | ))
|
21 | .add('Single Selections', () => (
|
22 | <React.Fragment>
|
23 | <GlobalStyle />
|
24 | <FastSelection
|
25 | single
|
26 | items={[
|
27 | {id: 1, value: 'V', label: 'um'},
|
28 | {id: 2, value: 'V', label: 'dois'},
|
29 | {id: 3, value: 'V', label: 'tres'},
|
30 | {id: 4, value: 'V', label: 'quatro'},
|
31 | ]}
|
32 | selecteds={[{}]}
|
33 | onChange={() => null}
|
34 | />
|
35 | </React.Fragment>
|
36 | )); |
\ | No newline at end of file |