forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.stories.tsx
More file actions
32 lines (31 loc) · 882 Bytes
/
index.stories.tsx
File metadata and controls
32 lines (31 loc) · 882 Bytes
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
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { boolean } from '@storybook/addon-knobs';
import Switch from '.';
storiesOf('components/Switch', module)
.add('Switch', () => <Switch onClick={action('Clikkkk')} right={false} />)
.add('Switch Right', () => (
<Switch onClick={action('Clikkkk')} right={boolean('right', true)} />
))
.add('Switch secondary', () => (
<Switch
right={false}
onClick={action('Clikkkk')}
secondary={boolean('secondary', true)}
/>
))
.add('Switch offMode', () => (
<Switch
right={false}
onClick={action('Clikkkk')}
offMode={boolean('offMode', true)}
/>
))
.add('Switch small', () => (
<Switch
right={false}
onClick={action('Clikkkk')}
small={boolean('small', true)}
/>
));