// @flow /* eslint-disable react-hooks/rules-of-hooks */ import * as React from 'react'; import Button from '../../button/Button'; import Select from '../../select/Select'; import TextArea from '../text-area/TextArea'; import TextInput from '../text-input/TextInput'; import Toggle from '../../toggle/Toggle'; import Form from './Form'; import notes from './Form.stories.md'; export const basic = () => { const [formData, setFormData] = React.useState({ showtextareatoggle: '', }); const [formValidityState, setFormValidityState] = React.useState({}); const customValidationFunc = value => { if (value !== 'box') { return { code: 'notbox', message: 'value is not box', }; } return null; }; return (
); }; export default { title: 'Components/Form Elements/Form', component: Form, parameters: { notes, }, };