json-dynaform

0.1.0-alpha • Public • Published

Overview & Purpose

DynaForm.js allows you to create complicated HTML/JSX Forms using JSON to guide through UI Placement, State Management, Error Handling and Form Submission.

Usage

import Form from 'npm i json-dynaform'
import schema from '<path>/schema.json'

const actions = [{
  label: 'Save',
  handler: onSave,
  isPrimary: true
},{
  label: 'Cancel',
  handler: onCancel,
  isPrimary: false
}]

return(
  <Form 
    schema={schema}
    onChange={onChange}
    values={values}
    actions={actions}
    isReadOnly={false}
  />
)

Package Sidebar

Install

npm i json-dynaform

Weekly Downloads

3

Version

0.1.0-alpha

License

none

Unpacked Size

42.2 kB

Total Files

27

Last publish

Collaborators

  • rhit99900