import React from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { Card } from '../../src/ui/Card/Card'; import { Badge } from '../../src/ui/Badge/Badge'; import { Button } from '../../src/ui/Button/Button'; const meta: Meta = { title: 'UI/Card', component: Card, parameters: { layout: 'centered' }, tags: ['autodocs'], decorators: [ (Story) => (
), ], argTypes: { padding: { control: 'select', options: ['sm', 'md', 'lg'] }, headerVariant: { control: 'select', options: ['primary', 'secondary'] }, }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { children: 'Card content goes here.', padding: 'md' }, }; export const WithPrimaryHeader: Story = { args: { header: 'Section Title', headerVariant: 'primary', children: 'Card content with a primary header.', }, }; export const WithSecondaryHeader: Story = { args: { header: 'Section Title', headerVariant: 'secondary', children: 'Card content with a secondary header.', }, }; export const WithFooter: Story = { args: { header: 'My Card', headerVariant: 'primary', children: 'Card body content.', footer: 'Last updated 2 minutes ago', }, }; export const ScenarioCard: Story = { render: () => (
Login flow Passed

Last run 2 minutes ago ยท 4 steps

), };