import { Meta, StoryObj } from "@storybook/react"; import { getCssProps } from "@sb/cssprops"; import { Divider } from "../Divider"; import { Text } from "../../Typography/Text"; import { IconButton } from "@components/Buttons/IconButton"; import { Flex } from "@components/Layout/Flex"; import { Card } from "."; export default { title: "Content/Card", component: Card, parameters: { cssprops: getCssProps("Card"), }, subcomponents: { "Card.Header": Card.Header, "Card.Title": Card.Title, "Card.Panel": Card.Panel, "Card.Columns": Card.Columns, "Card.Stack": Card.Stack, "Card.Grid": Card.Grid, }, } as Meta; type Story = StoryObj; export const Primary: Story = { args: { children: [ Card Title , Here is some content within a panel , ], }, }; export const WithColumns: Story = { args: { children: [ Card Title , Column 1 Column 2 , ], }, }; export const WithStack: Story = { args: { children: [ Card Title , Stack 1 Stack 2 , ], }, }; export const WithGrid: Story = { args: { children: [ Card Title , Panel 1 Panel 2 Panel 3 Panel 4 , ], }, }; export const WithDivider: Story = { args: { ...Primary.args, children: [ Here is some content within a panel , , Here is some content within a panel , ], }, }; export const WithActions: Story = { args: { ...Primary.args, children: [ Card Title , Here is some content within a panel , ], }, };