OperationCode/front-end

View on GitHub
components/Heading/__stories__/Heading.stories.tsx

Summary

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

type HeadingStoryType = StoryObj<typeof Heading>;

const meta: Meta<typeof Heading> = {
  title: 'Heading',
  component: Heading,
  args: {
    text: 'Heading text',
  },
};

export default meta;

export const Default: HeadingStoryType = {
  render: args => <Heading {...args} />,
};