Form
Wires a web form together: initial values, validation and submission. Use its wrapped fields, such as `Form.TextInput`, rather than the plain ones.
Health
Source
Playground
No Example
Accessibility
unknown
Platform
Web
- Overview
- Props
On th web, when you need a complex form to manage data with initial values, validation, etc., the Form component can be used with its wrapped components to make the experience seamless.
👉 Check the guide to know when to use it or not
Basic usage​
Available wrapped components​
💡 If one is missing, do not hesitate to ping @murray_owners
Form props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| className | string | |||
| id | string | |||
| onChange | (values: Values) => Promise<any>void | |||
| onSubmit* | 2 possibilities(values: Values, actions: FormActions<Values>) => Promise<any>void | |||
| warningSchema | any | (() => any) |
Undocumented props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| css | any | |||
| enableReinitialize | any | |||
| initialErrors | any | |||
| initialTouched | any | |||
| initialValues | any | |||
| innerRef | any | |||
| onReset | any | |||
| validate | any | |||
| validateOnBlur | any | |||
| validateOnChange | any | |||
| validateOnMount | any | |||
| validationSchema | any |