闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
587 B

  1. import React from 'react';
  2. import { storiesOf } from '@storybook/react';
  3. import { action } from '@storybook/addon-actions';
  4. import Button from 'mastodon/components/button';
  5. storiesOf('Button', module)
  6. .add('default state', () => (
  7. <Button text="submit" onClick={action('clicked')} />
  8. ))
  9. .add('secondary', () => (
  10. <Button secondary text="submit" onClick={action('clicked')} />
  11. ))
  12. .add('disabled', () => (
  13. <Button disabled text="submit" onClick={action('clicked')} />
  14. ))
  15. .add('block', () => (
  16. <Button block text="submit" onClick={action('clicked')} />
  17. ));