https://github.com/batazor/react-final-form-generator
Generating form over react-final-form
https://github.com/batazor/react-final-form-generator
generator-form material-ui react-form ui
Last synced: 5 months ago
JSON representation
Generating form over react-final-form
- Host: GitHub
- URL: https://github.com/batazor/react-final-form-generator
- Owner: batazor
- License: mit
- Created: 2018-10-15T10:43:43.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-10-12T04:27:04.000Z (over 2 years ago)
- Last Synced: 2025-03-18T13:07:30.399Z (12 months ago)
- Topics: generator-form, material-ui, react-form, ui
- Language: JavaScript
- Size: 17.4 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-final-form-generator
Generating form over react-final-form
#### Feature
+ generation form use JSON
+ condition
### Usage
```js
import Form, { Control } from 'react-final-form-generator'
// Fields
const fields = [
{
name: 'email',
label: 'Email',
type: 'TextField',
},
{
name: 'submit',
label: 'Submit',
type: 'Button',
condition: {
when: 'email',
is: 'test',
action: '==',
},
},
]
// ...code
function renderForm() {
return (
)
}
```
### TODO
- [] validation