From 050f4047763793e324f5bef6596e0e7e26ba3e8f Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Tue, 14 May 2024 19:01:44 -0400 Subject: [PATCH] [19/n][Storybook] CloudyFlow --- .../frontend/src/components/CloudyFlow.tsx | 1 + .../stories/Components/CloudyFlow.stories.tsx | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 packages/frontend/src/stories/Components/CloudyFlow.stories.tsx diff --git a/packages/frontend/src/components/CloudyFlow.tsx b/packages/frontend/src/components/CloudyFlow.tsx index fb34990a..479779f8 100644 --- a/packages/frontend/src/components/CloudyFlow.tsx +++ b/packages/frontend/src/components/CloudyFlow.tsx @@ -1,4 +1,5 @@ import React from 'react'; + type Props = React.PropsWithChildren<{ className?: string; snowZIndex?: number; diff --git a/packages/frontend/src/stories/Components/CloudyFlow.stories.tsx b/packages/frontend/src/stories/Components/CloudyFlow.stories.tsx new file mode 100644 index 00000000..d3e90cbd --- /dev/null +++ b/packages/frontend/src/stories/Components/CloudyFlow.stories.tsx @@ -0,0 +1,27 @@ +import { StoryObj, Meta } from '@storybook/react'; + +import { CloudyFlow } from 'components/CloudyFlow'; + +const meta: Meta = { + title: 'Components/CloudyFlow', + component: CloudyFlow, + tags: ['autodocs'], + argTypes: { + className: { + control: 'text', + }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + render: ({ ...arg }) => { + return ; + }, + args: { + className: 'flex flex-col min-h-screen', + }, +};