import * as React from 'react' import { storiesOf } from '@storybook/react' import centered from '@storybook/addon-centered/react' import { Toast, ToastType } from './Toast' import './Toast.stories.css' storiesOf('Toast', module) .addDecorator(centered) .add('Simple toast example', () => ( )) .add('JSX props', () => ( Title} body={

Small Link

} /> )) .add('Closable', () => ( )) .add('Timeout', () => ( console.log('I should be closing now')} /> )) .add('Info toast', () => ( )) .add('Warn toast', () => ( )) .add('Error toast', () => ( ))