百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

ui-schema

> 前端框架
开源

使用 JSON-Schema 与 React 进行交互,使用任何设计系统生成表单 + 用户界面,轻松创建复杂的自定义小组件。

391 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

使用 JSON-Schema 与 React 进行交互,使用任何设计系统生成表单 + 用户界面,轻松创建复杂的自定义小组件。

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 next version you must specify the exact version or use @ui-schema/ui-schema@next during installation.

  • @ui-schema/ui-schema

  • @ui-schema/react

  • @ui-schema/json-schema

  • @ui-schema/json-pointer

  • @ui-schema/ds-material

  • @ui-schema/ds-bootstrap

  • @ui-schema/pro

  • @ui-schema/dictionary

  • Additional Material-UI Widgets:

    • Date-Time Picker: @ui-schema/material-pickers Documentation
    • Codemirror as Material Input: @ui-schema/material-code Documentation, Repository
    • react-color picker: @ui-schema/material-color Documentation, Repository
    • react-colorful picker: @ui-schema/material-colorful Documentation, Repository
    • Drag 'n Drop with react-dnd: @ui-schema/material-dnd Documentation
  • Additional Packages, not only for UI Schema:

    • CodeMirror v6 kit: @ui-schema/kit-codemirror Documentation, Repository
    • Drag 'n Drop kit: @ui-schema/kit-dnd Documentation

Get Started

  • ⚡ Quick Start
  • ️ Schema Examples + Live Editor
  • Demo Apps:
    • MUI, React, TypeScript: CodeSandbox | StackBlitz | Source Repository
    • MUI, React: CodeSandbox | StackBlitz | Source Repository
    • Bootstrap, React: CodeSandbox | StackBlitz | Source Repository
    • React Native with custom widgets
  • Documentation
  • Get Help on Discord

Schema

Use 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!

Schema Documentation

Features

  • add any design-system or custom widget
    • easily create isolated and atomic widgets, with autowired data and validations
    • customize design system behaviour with e.g. widget compositions
    • easy binding of own design systems and custom widgets
    • easily add advanced features like read-or-write mode
  • auto-rendering by data & schema or full-custom forms with autowired widgets
  • flexible translation of widgets
    • with any library (t prop (Translator), Translate/TranslateTitle components)
    • in-schema translations (t keyword)
    • label text transforms (tt/ttEnum keyword)
    • single or multi-language
    • for labels, titles, errors, icons...
    • (optional) tiny integrated translation library
    • (optional) translation dictionaries
  • modular, extensible and slim core
    • add own plugins
    • add own validators
    • add own base renderers
    • add own widget matchers & render strategies
    • use what you need
  • isomorphic code: for browser, server, and more
  • not just for React, with vanilla-JS core
  • performance optimized, React only updates HTML which must re-render, perfect for big schemas
  • easy nesting for custom object/array widgets with ``
  • validate hidden/auto-generated values, virtualize schema levels (hidden keyword)
  • handle store update from anywhere and however you want
  • includes helper functions for store and immutable handling
  • extensive documentations of core, widgets
  • complex conditionals schemas
  • loading / referencing schemas by URL, connect any API or e.g. babel dynamic loading instead
  • definitions and JSON-Pointer references in schemas
  • JSON Schema extension: UI Schema, change design and even behaviour of widgets
  • JSON Schema versions supported: Draft 2020-12, 2019-09 / Draft-08, Draft-07, Draft-06, Draft-04

Design-System and Widgets Overview

Versions

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:

  • latest releases (GitHub release notes)
  • update and migration notes (docs page)
  • current roadmap (GitHub discussion)

Example UI Schema

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:

bash
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@next

And add the example code:

…

Instead of using a WidgetEngine at root level (automatic rendering of full schema), it's also possible to use full custom rendering.

Example Simple Text Widget

Easily create new widgets, this is all for a simple text (type=string) widget:

…

Contributing

See CONTRIBUTING.md.

License

Released under the MIT License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptform-builderform-generatorjson-schemajson-schema-form

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架