import * as React from "react"; import { StoryFn, 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: StoryFn = args => ( Form Title
Form sections go here
); export const Default = { render: Template }; export const _FormMessage = { render: args => { return ( Use the Control panel to change the appearance of the message. Form Title
Form sections go here
); } }; export const _FormSection = { render: args => ( ) }; export const FormSectionWithHeaderAndFooter = { render: args => ( Here is a caption with supporting info about this section of the form ) }; export const _FormSubSection = { render: args => ( ) }; export const RelatedFormSubSectionsGroupedInAFormSection = { render: args => ( ) }; export const ExampleFormLayout = { render: args => ( There are already a bunch of teams. Are you sure you want another one? Team Generator