* docs: add jsdoc * feat: change enums to as const objects * chore(test): add themeColors.test.ts * fix: fix tests and bugs with strings.ts util * fix: path alias imports and tsconfig file bug * fix: remove --max-warnings 0
26 lines
605 B
TypeScript
26 lines
605 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { InfoCard } from '@views/components/common/InfoCard/InfoCard';
|
|
|
|
const meta = {
|
|
title: 'Components/Common/InfoCard',
|
|
component: InfoCard,
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
tags: ['autodocs'],
|
|
argTypes: {
|
|
titleText: { control: 'text' },
|
|
bodyText: { control: 'text' },
|
|
},
|
|
} satisfies Meta<typeof InfoCard>;
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
titleText: 'WAITLIST SIZE',
|
|
bodyText: '14 Students',
|
|
},
|
|
};
|