chore(site): add Form storybook (#12469)

Related to #12260
This commit is contained in:
Bruno Quaresma
2024-03-11 10:21:18 -03:00
committed by GitHub
parent 1f276a22b3
commit b8dd6b3aa2
+36
View File
@@ -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<typeof Form> = {
title: "components/Form",
component: Form,
args: {
children: (
<FormSection
title="General"
description="The name of the workspace and its owner. Only admins can create workspace for other users."
>
<FormFields>
<TextField label="Workspace Name" />
<TextField label="Owner" />
</FormFields>
</FormSection>
),
},
};
export default meta;
type Story = StoryObj<typeof Form>;
export const Vertical: Story = {
args: {
direction: "vertical",
},
};
export const Horizontal: Story = {
args: {
direction: "horizontal",
},
};