OperationCode/front-end

View on GitHub
components/Cards/ValueCard/__stories__/ValueCard.stories.tsx

Summary

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

type ValueCardStoryType = StoryObj<typeof ValueCard>;

const meta: Meta<typeof ValueCard> = {
  title: 'Cards/ValueCard',
  component: ValueCard,
  args: {
    name: 'Card name',
    description: descriptions.short,
  },
};

export default meta;

export const Default: ValueCardStoryType = {
  render: args => <ValueCard {...args} />,
};

export const WithLongDescription: ValueCardStoryType = {
  ...Default,
  args: {
    description: descriptions.long,
  },
};