0.1.12 • Published 3 years ago
@appitsy/forms v0.1.12
@appitsy/forms - Build Effortless Forms in React
Install
npm install --save @appitsy/forms
Usage
- Add Bootstrap bundle - CSS, JS & Popper JS to your application.
- Build a form with our form builder
- Copy the form from 'Schema JSON' section.
- Use it in your app like this:
import React, { Component } from 'react'
import { Form } from '@appitsy/forms';
const formSchema = [
{
"type": "text",
"name": "My Text Field",
"display": {
"label": "My First Text Field",
}
},
{
"text": "Submit",
"style": "primary",
"type": "button",
"name": "submitButton"
}
]
class Example extends Component {
render() {
return <Form
schema={formSchema}
data={data}
onSubmit={data => submitForm(data)}
}
}
License
MIT © AppItsy