React-Metaforms
Forms rendered from JSON.
Basic Usage
Properties
- id - id of form.
- fields - array of objects rendered by metaform.
- onFieldsChange
- onSubmit - Function called after submitting form. Returns same structure as provided into
fields
property and adds value to each field.
Optional:
- customComponents - object containing custom components provided to metaform in following structure:
{ fieldType: Component }
wherefieldType
is unique type name, which is matched against value provided infields
property. - onButtonClick - Function called after clicking on any button. Returns whole button definition.