import type { Meta, StoryObj } from '@storybook/react-vite'; import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from './card'; import { Button } from '../button/button'; import { Input } from '../input/input'; import { Label } from '../label/label'; const meta = { title: 'Components/Card', component: Card, parameters: { layout: 'centered', docs: { description: { component: 'Surface that groups related content. Compose it from the parts rather than styling a bare `div`, so padding and rhythm stay consistent across the product.\n\nThe card reads as a card through a tinted fill and a hairline border, not a shadow — that is how CBAR draws it. Padding stays on the kit’s own scale: the only composition CBAR draws is a full-width page section at 36px, which is too generous for a general-purpose card.', }, }, }, tags: ['autodocs'], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { render: () => ( Monthly report Usage across all workspaces.

You used 12,430 of 20,000 credits this month.

), }; /** `CardAction` moves into a second column automatically when present. */ export const WithAction: Story = { render: () => ( Billing You are on the Free plan.

Next invoice: no charge.

), }; export const WithForm: Story = { render: () => ( Sign in Use your work email.
), };