We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 154981c commit 934f4a5Copy full SHA for 934f4a5
stories/Button.stories.js
@@ -1,5 +1,6 @@
1
import React from 'react';
2
import Provider from './Provider.js';
3
+import { action } from '@storybook/addon-actions';
4
import { storiesOf } from '@storybook/react';
5
import { withKnobs, text } from '@storybook/addon-knobs';
6
import Button from '../src/components/Button';
@@ -12,5 +13,5 @@ storiesOf('Button', module)
12
13
.addDecorator(withKnobs)
14
15
.add('default', () => (
- <Button label={text('label', 'Hello Button')} id="abc" onClick={() => console.log('click')} />
16
+ <Button label={text('label', 'Hello Button')} id="abc" onClick={action('button-click')} />
17
));
0 commit comments