From 530db6fb2b898be163847fec6d4911745c2b1d41 Mon Sep 17 00:00:00 2001 From: kawamataryo Date: Sun, 24 Nov 2024 14:44:56 +0900 Subject: [PATCH] chore: clean storybook --- src/lib/components/AsyncButton.stories.tsx | 20 ++++++++++++++++++++ src/lib/components/SocialLinks.stories.tsx | 13 +++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/lib/components/AsyncButton.stories.tsx create mode 100644 src/lib/components/SocialLinks.stories.tsx diff --git a/src/lib/components/AsyncButton.stories.tsx b/src/lib/components/AsyncButton.stories.tsx new file mode 100644 index 0000000..acaaf9c --- /dev/null +++ b/src/lib/components/AsyncButton.stories.tsx @@ -0,0 +1,20 @@ +import type { Meta, StoryObj } from "@storybook/react"; +import AsyncButton from "./AsyncButton"; + +const meta = { + title: "Components/AsyncButton", + component: AsyncButton, +} as Meta; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + label: "Click Me", + onClick: async () => { + return new Promise((resolve) => setTimeout(resolve, 2000)); + }, + }, +}; diff --git a/src/lib/components/SocialLinks.stories.tsx b/src/lib/components/SocialLinks.stories.tsx new file mode 100644 index 0000000..ee1f7d3 --- /dev/null +++ b/src/lib/components/SocialLinks.stories.tsx @@ -0,0 +1,13 @@ +import type { Meta, StoryObj } from "@storybook/react"; +import SocialLinks from "./SocialLinks"; + +const meta = { + title: "Components/SocialLinks", + component: SocialLinks, +} as Meta; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {};