OperationCode/front-end

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

Summary

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

type DrawerStorytype = StoryObj<typeof Drawer>;

const meta: Meta<typeof Drawer> = {
  title: 'Drawer',
  component: Drawer,
  parameters: {
    viewport: {
      defaultViewport: 'tablet',
    },
  },
};

export default meta;

/**
 * Default Drawer supplied with only required args.
 */
export const Default: DrawerStorytype = {
  render: args => <Drawer {...args} />,
  args: {
    children: 'Drawer content will only display on display size of Tablet or smaller',
    isVisible: true,
  },
};