Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 682 Bytes

Form.md

File metadata and controls

23 lines (16 loc) · 682 Bytes

Form

Root component that provide context to nested children.

Public interface

Props

Form contains html <form/> element. All props for <form/> are valid for Form(except action attribute).

Also Form represents FormProvider from react-formawesome-core package. All props for FormProvider are valid for Form.

Example

<Form 
    onSubmit={async (values) => await someRequest(values)}
    validator={new SchemaValidator(ExampleSchema)}
    errorParser={(error) => myCustomParser(error)}
>
    ...
</Form>