demographics_dashboard_part_2 (#1903)
[openemr.git] / .docs / buttons / buttons.stories.js
blob7d23815af4cd5c4090ef752f26e1ecf5390600d9
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>
12 ));
14 stories.add('with some emoji', () => (
15     <button onClick={action('clicked')}><span role="img" aria-label="so cool">😀 😎 👍 💯</span></button>
16 ));