React Utilities
In addition to <FormiumForm />, this package exports a few utilities
that will be useful for advanced use cases.
method getValidationSchema@formium/react| Returns | |
|---|---|
ObjectSchema<object> | Return a Yup object schema based on a list of form elements. Alpha |
| Parameters | Description |
|---|---|
inputElements | FormElement[]An array of expanded FormElements |
method getInitialValues@formium/react| Returns | |
|---|---|
Values | Return initial values given an array of form elements (i.e. like on a page) |
| Parameters | Description |
|---|---|
inputElements | FormElement[]An array of expanded FormElements Required |
Was this page helpful?
Build forms, without the tears.
Resources
hello@formium.io — Copyright © 2020 Formium, Inc. All rights reserved.