import * as React from "react"; import { Story, Meta } from "@storybook/react"; import { FormMessage, FormSection, FormSectionBody, FormSectionFooter, FormSectionHeader, FormSubSection, FormTitle } from "../"; import { Container } from "../../styleUtils/layout"; import { TextInput } from "../../textInput"; import { Textarea } from "../../textarea"; import { ToggleInputList } from "../../toggleInputList"; import { SelectInput } from "../../selectInput"; import { SecondaryButton } from "../../button"; import { SystemIcons } from "../../icons/dist/system-icons-enum"; import { CaptionText } from "../../styleUtils/typography"; const onAddSubSection = () => { alert("another box would be added"); }; const onRemoveSubSection = () => { alert("the box would be removed"); }; export default { title: "Forms/Form structure", subcomponents: { FormMessage, FormSection, FormSectionBody, FormSectionFooter, FormSectionHeader, FormSubSection, FormTitle } } as Meta; const Template: Story = args => ( Form Title
Form sections go here
); export const Default = Template.bind({}); export const _FormMessage = args => { return ( Use the Control panel to change the appearance of the message. Form Title
Form sections go here
); }; export const _FormSection = args => ( ); export const FormSectionWithHeaderAndFooter = args => ( Here is a caption with supporting info about this section of the form ); export const _FormSubSection = args => ( ); export const RelatedFormSubSectionsGroupedInAFormSection = args => ( ); export const ExampleFormLayout = args => ( There are already a bunch of teams. Are you sure you want another one? Team Generator