Skip to content

Instantly share code, notes, and snippets.

@viniciusdacal
Created November 1, 2017 23:45
Show Gist options
  • Save viniciusdacal/0847047b51f38ed50e439ad34a3095b0 to your computer and use it in GitHub Desktop.
Save viniciusdacal/0847047b51f38ed50e439ad34a3095b0 to your computer and use it in GitHub Desktop.
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Button from '../Button/Button';
storiesOf('Button', module)
.add('default', () => (
<Button onClick={action('clicked')}>Hello Button</Button>
))
.add('disabled', () => (
<Button onClick={action('clicked')} disabled>Hello Button</Button>
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment