No Description

Button.stories.js 619B

12345678910111213141516171819202122232425262728293031323334353637
  1. import React from 'react';
  2. import { Button } from './Button';
  3. export default {
  4. title: 'Example/Button',
  5. component: Button,
  6. argTypes: {
  7. backgroundColor: { control: 'color' },
  8. },
  9. };
  10. const Template = (args) => <Button {...args} />;
  11. export const Primary = Template.bind({});
  12. Primary.args = {
  13. primary: true,
  14. label: 'Button',
  15. };
  16. export const Secondary = Template.bind({});
  17. Secondary.args = {
  18. label: 'Button',
  19. };
  20. export const Large = Template.bind({});
  21. Large.args = {
  22. size: 'large',
  23. label: 'Button',
  24. };
  25. export const Small = Template.bind({});
  26. Small.args = {
  27. size: 'small',
  28. label: 'Button',
  29. };