mauget / react-json-schema-form-demo

A React JSON Schema Form demo, featuring responsive rows implemented with styled components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example of React JSON Schema Form with Styled Components

Description

This web application displays a styled from based on a JSON document, a JSON schema describing the document, and a JSON UI schema that says how to render the form items of the document.

It uses a custom object field template in its Ui schema to force fields into multiple columns according to parent weidth.

Install

  1. Clone this project
  2. yarn install

Run

  1. yarn start
  2. Browser address: http://localhost:3000

Screen

Screen-shot


This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn test:coverage

Like yarn test but outputs a coverage table.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is "minified", and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About

A React JSON Schema Form demo, featuring responsive rows implemented with styled components.


Languages

Language:JavaScript 78.6%Language:HTML 14.8%Language:Shell 3.5%Language:CSS 3.1%