import React from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { Card } from './Card'; const meta: Meta = { title: 'UI kit/Card', component: Card, tags: ['autodocs'], }; export default meta; type Story = StoryObj; export const Default: Story = { args: { children: 'Card content', border: true, }, parameters: { docs: { description: { story: ` If you are migrating from the older version of the design system, please note that the \`Card\` component has undergone some breaking changes. The \`title\` and \`footer\` props have been removed. Instead, you should use the new subcomponents: \`Card.Header\`, \`Card.Title\`, \`Card.Content\`, and \`Card.Footer\`. Before: \`\`\`tsx Card content \`\`\` After: \`\`\`tsx Card title Card content Card footer \`\`\` `, }, }, }, render: args => ( Card title Card content Card footer ), };