Skip to content

Instantly share code, notes, and snippets.

@viniciusdacal
Created November 2, 2017 11:43
Show Gist options
  • Select an option

  • Save viniciusdacal/fb67c962bf98168016d9b1b3394eadfc to your computer and use it in GitHub Desktop.

Select an option

Save viniciusdacal/fb67c962bf98168016d9b1b3394eadfc 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';
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