Use JSON-Schema with React, generate Forms + UIs with any design system, easy creation of complex custom widgets.
Use JSON-Schema with React, generate Forms + UIs with any design system, easy creation of complex custom widgets.
UI Schema
Generate forms and UIs from JSON Schema. Use the headless React components to create powerful schema-driven apps in any design. Get started quickly with Material UI React or Bootstrap and easily create your own widgets and plugins.
Create smart apps faster, with less code — thanks to auto-generated UIs, built-in validation, and easy customization.
[!CAUTION]
You're exploring the next version! If you spot odd behaviour or have feedback, please open an issue.
The published documentation is still for version 0.4.x. The new documentation for 0.5.x is not yet complete. See this basic migration guide from 0.4.x to 0.5.x. You can preview the new documentation locally by setting up the repository.
Note that the example code below and demo apps are already updated for 0.5.x.
To use the
nextversion you must specify the exact version or use@ui-schema/ui-schema@nextduring installation.
Additional Material-UI Widgets:
@ui-schema/material-pickers Documentation@ui-schema/material-code Documentation, Repositoryreact-color picker: @ui-schema/material-color Documentation, Repositoryreact-colorful picker: @ui-schema/material-colorful Documentation, Repositoryreact-dnd: @ui-schema/material-dnd DocumentationAdditional Packages, not only for UI Schema:
@ui-schema/kit-codemirror Documentation, Repository@ui-schema/kit-dnd DocumentationUse JSON Schema to validate data and automatically create UIs with it - UI-Schema makes it easy to write widgets based on schema structures, use custom UI keywords to make it look great!
t prop (Translator), Translate/TranslateTitle components)t keyword)tt/ttEnum keyword)hidden keyword)Design-System and Widgets Overview
This project adheres to semver, until 1.0.0 and beginning with 0.1.0: all 0.x.0 releases are like MAJOR releases and all 0.0.x like MINOR or PATCH, modules below 0.1.0 should be considered experimental.
Get the latest version - or help build it:
First time? Take the quick-start or check out the demo repos!
Example setup of the React engine with @mui as design system, below is a vanilla-HTML text widget.
If you haven’t already set up @mui; then install the @ui-schema dependencies:
npm i --save @ui-schema/ui-schema@next @ui-schema/json-schema@next @ui-schema/json-pointer@next @ui-schema/react@next @ui-schema/ds-material@nextAnd add the example code:
…Instead of using a
WidgetEngineat root level (automatic rendering of full schema), it's also possible to use full custom rendering.
Easily create new widgets, this is all for a simple text (type=string) widget:
…See CONTRIBUTING.md.
Released under the MIT License.
No open issues yet, or sync has not completed.