Needlessly Postulating Minds
Miss any of our Open RFC calls?Watch the recordings here! »

studio-form

0.5.3 • Public • Published

Studio Form

<Form /> let you manage your form state from a JSON schema configuration. It's strongly inspired by react-jsonschema-form and formik.

You can check documentation here.

Installation

$ yarn add studio-form

quick usage

import { Form, Field, FormContext } from 'studio-form'
<Form
  uiSchema={{
    firstName: { placeholder: 'prénom' }
  }}
  formSchema={{
    title: 'A registration form',
    description: 'A simple form example.',
    required: ['firstName'],
    properties: {
      firstName: {
        type: 'string',
        title: 'First name',
        default: 'Chuck'
      }
    }
  }}
/>

Check out the examples !

Install

npm i studio-form

DownloadsWeekly Downloads

122

Version

0.5.3

License

MIT

Unpacked Size

25.4 kB

Total Files

7

Last publish

Collaborators

  • avatar