Skip to content

Commit

Permalink
[story]
Browse files Browse the repository at this point in the history
  • Loading branch information
appare45 committed Nov 14, 2024
1 parent a7c33fd commit 0370893
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/common_components/FormStatusBadge.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Meta, StoryObj } from "@storybook/react";

import { FormStatusBadge } from "./FormStatusBadge";

const meta: Meta<typeof FormStatusBadge> = {
component: FormStatusBadge,
};

export default meta;

type Story = StoryObj<typeof FormStatusBadge>;

export const Default: Story = {
args: {
status: "開始前",
},
};

export const 受付中: Story = {
args: {
status: "受付中",
},
};

export const 受付終了: Story = {
args: {
status: "受付終了",
},
};
17 changes: 17 additions & 0 deletions src/common_components/Heading.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Meta, StoryObj } from "@storybook/react";

import { Heading } from "./Heading";

const meta: Meta<typeof Heading> = {
component: Heading,
};

export default meta;

type Story = StoryObj<typeof Heading>;

export const Default: Story = {
args: {
children: "Heading",
},
};
15 changes: 15 additions & 0 deletions src/common_components/Loading.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Meta, StoryObj } from "@storybook/react";

import { Loading } from "./Loading";

const meta: Meta<typeof Loading> = {
component: Loading,
};

export default meta;

type Story = StoryObj<typeof Loading>;

export const Default: Story = {
args: {},
};

0 comments on commit 0370893

Please sign in to comment.