1 import React from 'react';
2 import { storiesOf, addDecorator } from '@storybook/react';
3 import { withReadme } from 'storybook-readme';
4 import { action } from '@storybook/addon-actions';
5 import README from './README.md';
7 const stories = storiesOf('Buttons', module);
8 stories.addDecorator(withReadme(README));
10 stories.add('with text', () => (
11 <button className={"btn btn-save"} onClick={action('clicked')}>Hello there</button>
14 stories.add('with some emoji', () => (
15 <button onClick={action('clicked')}><span role="img" aria-label="so cool">😀 😎 👍 💯</span></button>