chore: add stories for Stack (#12375)

This commit is contained in:
Kayla Washburn-Love
2024-03-01 10:26:50 -07:00
committed by GitHub
parent f4c888f33e
commit 7824bee25f
@@ -0,0 +1,47 @@
import type { Meta, StoryObj } from "@storybook/react";
import { Stack } from "./Stack";
const meta: Meta<typeof Stack> = {
title: "components/Stack",
component: Stack,
args: {
children: (
<>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span>PSYCHO-PASS </span>
<span> </span>
<span></span>
<span>Re:ゼロから始める異世界生活</span>
<span></span>
</>
),
},
};
export default meta;
type Story = StoryObj<typeof Stack>;
export const Vertical: Story = {};
export const VerticalCenter: Story = {
args: {
alignItems: "center",
},
};
export const Horizontal: Story = {
args: {
direction: "row",
},
};
export const HorizontalWrap: Story = {
args: {
direction: "row",
wrap: "wrap",
},
};