import type { Meta, StoryObj } from "@storybook/react-vite"; import { Stack } from "@shared/components/Stack"; import { Inline } from "@shared/components/Inline"; import { Card } from "@shared/components/Card"; const meta: Meta = { title: "Primitives/Layout/Stack", component: Stack, tags: ["autodocs"], parameters: { layout: "padded" }, }; export default meta; type Story = StoryObj; function Box({ children }: { children: React.ReactNode }) { return (
{children}
); } export const Default: Story = { render: () => ( One Two Three ), }; export const GapSizes: Story = { render: () => ( {(["1", "2", "4", "6"] as const).map((gap) => (
gap {gap}
A B C
))}
), }; export const InCard: Story = { render: () => (
Card title
Stack is the default vertical container — it's how you compose every card body, list, and form section.
Action row
), };