signal-desktop/sticker-creator/elements/Toast.stories.tsx

18 lines
465 B
TypeScript
Raw Normal View History

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';
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>
<Toast onClick={action('click')}>{child}</Toast>
2019-12-17 20:25:57 +00:00
</StoryRow>
);
});