import type { Meta, StoryObj } from "@storybook/react"; import { excludeControls } from "../../utils"; import { StoryContainer } from "../../utils/StoryContainer"; import { TextField } from "../TextField"; import type { FieldsetProps } from "./Fieldset"; import { Fieldset } from "./Fieldset"; type StoryType = StoryObj; const meta: Meta = { title: "Forms/Fieldset", component: Fieldset, argTypes: excludeControls("legendComponent"), }; export const Default: StoryType = { render: (args: FieldsetProps) => (
), args: { legend: "", }, decorators: [ Story => ( ), ], }; export const WithLegend: StoryType = { render: (args: FieldsetProps) => (
), args: { legend: "Contact Details", }, }; export default meta;