- Notifications
You must be signed in to change notification settings - Fork13
Form Rendering Library written in React
License
projectstorm/react-forms
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Note: use formik instead :)
DEMO:http://projectstorm.cloud/react-forms
A super simple, no-nonsense form library written in React that (hopefully) just works.
Forms in React can be quite difficult, but with this library, forms become quite easy.Storm React Forms (SRF) provides a simple way to create forms in a very declarative way.
Declare your form using standard react widgets, but make use ofStorm Element Widgetswhen you want to actually use an input field. When you click submit on your form, the formwill fire aformSubmitEvent(model)
which will contain an object with all the values in your form.
<FormWidgetformSubmitEvent={model=>console.log(model)}><TableLayoutWidget><FieldElementWidgetname="Name"/><FieldElementWidgetname="Surname"/></TableLayoutWidget></FormWidget>
The model will contain {Name, Surname}
you can pass avalue={object}
onto a form and it will automatically populateyour form fields with the values in the object. This does not changeobject
when the form firesbut instead will pass the new object as the first param in theformSubmitEvent(object)
(like in the previous example)
Take a look at the demos URL as well as the demos folder (docs will follow soon)
About
Form Rendering Library written in React
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.