From 684cd694be4063d66dc7ea3512493e989063d94d Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Fri, 8 Mar 2024 12:10:40 +0000 Subject: [PATCH] chore(site): add Form storybook --- site/src/components/Form/Form.stories.tsx | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 site/src/components/Form/Form.stories.tsx diff --git a/site/src/components/Form/Form.stories.tsx b/site/src/components/Form/Form.stories.tsx new file mode 100644 index 0000000000000..b1dafb94f03a1 --- /dev/null +++ b/site/src/components/Form/Form.stories.tsx @@ -0,0 +1,36 @@ +import TextField from "@mui/material/TextField"; +import type { Meta, StoryObj } from "@storybook/react"; +import { Form, FormFields, FormSection } from "./Form"; + +const meta: Meta = { + title: "components/Form", + component: Form, + args: { + children: ( + + + + + + + ), + }, +}; + +export default meta; +type Story = StoryObj; + +export const Vertical: Story = { + args: { + direction: "vertical", + }, +}; + +export const Horizontal: Story = { + args: { + direction: "horizontal", + }, +};