OperationCode/front-end

View on GitHub
components/Buttons/Button/__stories__/Button.stories.tsx

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
import { Meta, StoryObj } from '@storybook/react';
import Button from '../Button';

type ButtonStoryType = StoryObj<typeof Button>;

const meta: Meta<typeof Button> = {
  title: 'Buttons/Button',
  component: Button,
  parameters: {
    actions: {
      handles: ['click'],
    },
  },
};

export default meta;

export const Default: ButtonStoryType = {
  render: args => <Button {...args} />,
  args: {
    children: 'Button',
  },
};