2019-12-17 20:25:57 +00:00
|
|
|
import * as React from 'react';
|
|
|
|
import { StoryRow } from './StoryRow';
|
|
|
|
import { Toast } from './Toast';
|
|
|
|
|
|
|
|
import { storiesOf } from '@storybook/react';
|
|
|
|
import { text } from '@storybook/addon-knobs';
|
2020-01-07 02:20:16 +00:00
|
|
|
import { action } from '@storybook/addon-actions';
|
2019-12-17 20:25:57 +00:00
|
|
|
|
|
|
|
storiesOf('Sticker Creator/elements', module).add('Toast', () => {
|
|
|
|
const child = text('text', 'foo bar');
|
|
|
|
|
|
|
|
return (
|
|
|
|
<StoryRow>
|
2020-01-07 02:20:16 +00:00
|
|
|
<Toast onClick={action('click')}>{child}</Toast>
|
2019-12-17 20:25:57 +00:00
|
|
|
</StoryRow>
|
|
|
|
);
|
|
|
|
});
|