Closed LandSprutte closed 4 weeks ago
Exposing the FormState as render props for children within the form, allowing you to view submission-state of the form and more ofc :)
e.g:
const RandomForm = () => { return ( <AutoForm ... > {({ isSubmitting }) => <SubmitButton pending={isSubmitting} />} </AutoForm> ); }; const SubmitButton = ({ pending }: { pending: boolean }) => { return ( <Button disabled={pending} type="submit"> {pending ? Please wait... : Submit} </Button> ); };
Thank you for the contribution!
Exposing the FormState as render props for children within the form, allowing you to view submission-state of the form and more ofc :)
e.g: