0.1.12 • Published 3 years ago

@appitsy/forms v0.1.12

Weekly downloads
29
License
MIT
Repository
github
Last release
3 years ago

@appitsy/forms - Build Effortless Forms in React

NPM CI npm type definitions

Install

npm install --save @appitsy/forms

Usage

  1. Add Bootstrap bundle - CSS, JS & Popper JS to your application.
  2. Build a form with our form builder
  3. Copy the form from 'Schema JSON' section.
  4. 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

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.8

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago