import type { Meta, StoryObj } from "@storybook/react-vite"; import * as React from "react"; import { PAGE_DECORATOR } from "../../../.storybook/decorators"; import { Body, P } from "../typography"; import { Card } from "./card"; const meta: Meta = { title: "Building Blocks/Card", component: Card, decorators: [PAGE_DECORATOR], parameters: { layout: "fullscreen", }, }; export default meta; type Story = StoryObj; export const CardComponent: Story = { args: { children: (

The quick brown fox jumps over the lazy dog.

), }, }; export const CardWithTitle: Story = { args: { title: "Card title", children: (

The quick brown fox jumps over the lazy dog.

), }, }; export const CardWithControls: Story = { args: { title: "Card title", controls: [ { children: "Click me", onClick: () => alert("Button clicked.") }, ], children: (

The quick brown fox jumps over the lazy dog.

), }, }; export const CardWithBorder: Story = { args: { border: true, title: "Card with border", children: (

The quick brown fox jumps over the lazy dog.

), }, };