mickdelaney / react-jsonschema-form-builder

it's a visual builder of "Json Schema" that export the "Json Schema" generated for then paste this structure of schema in your react-jsonschema-form component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

This project was bootstrapped with Create React App.

It's a visual builder of "Json Schema" that export the "Json Schema" generated for then paste this structure of schema in your react-jsonschema-form component

Why?

Because I needed to create forms visually to export them to another system with react-jsonschema-form syntax

Demo

Demo

How does it work?

Very easy, if you know how does react-jsonschema-form work, you will feel comfortable with the code.

Installation

$ npm install react-jsonschema-form-builder

How does the design change?

You can do a fork and change this package @rjsf/material-ui For watching another available options you can read Supported Themes

Implementation

    import React from 'react';
    import seed from './seed.json'
    import FormBuilderSchema from "react-jsonschema-form-builder";
    function App() {
        return (
            <>
                <FormBuilderSchema
                    rootSchema={seed} 
                />
            </>
        );
    }

    export default App;

seed.json

        {
            "title": "Form Title",
            "description": "Subtitle",
            "type": "object",
            "properties": {}
        }

other properties

    //getJsonSchemaForm =>  callback this json schema
    //prefix =>  if you can add prefix before ID of inprus
    //rootSchemaUi => UiSchema
    //customWidgets => you can import some custom Widget
    <FormBuilderSchema
        getJsonSchemaForm={getJsonSchema}
        rootSchema={seed} 
        rootSchemaUi={{}}
        prefix={'prefix_befores_ides_inputs'} 
        customWidgets={{CustomCheckbox, FileWidget, ...}}
    />

imagen

About

it's a visual builder of "Json Schema" that export the "Json Schema" generated for then paste this structure of schema in your react-jsonschema-form component


Languages

Language:JavaScript 96.0%Language:HTML 3.5%Language:CSS 0.5%