InfoCard implemented
This commit is contained in:
25
src/stories/components/InfoCard.stories.tsx
Normal file
25
src/stories/components/InfoCard.stories.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Meta, StoryObj } from '@storybook/react';
|
||||
import { InfoCard } from 'src/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',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user