@quiet-front-end/json-schema-editor-antd
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

json-schema-editor-antd

NPM version NPM downloads

Antd Design 风格的 Json Schema 可视化编辑器。

Arco Design 风格:https://github.com/lin-mt/json-schema-editor-arco

Usage

npm install @quiet-front-end/json-schema-editor-antd
import { useState } from 'react';
import JsonSchemaEditor from '@quiet-front-end/json-schema-editor-antd';

export default () => {
  const [jsonData, setJsonData] = useState({});
  return (
    <JsonSchemaEditor
      mock={true}
      data={jsonData}
      onChange={(data) => {
        setJsonData(data);
      }}
    />
  );
};

Development

# install dependencies
$ yarn install

# develop library by docs demo
$ yarn start

# build library source code
$ yarn run build

# build library source code in watch mode
$ yarn run build:watch

# build docs
$ yarn run docs:build

# check your project for potential problems
$ yarn run doctor

LICENSE

MIT

Package Sidebar

Install

npm i @quiet-front-end/json-schema-editor-antd

Weekly Downloads

21

Version

0.3.0

License

MIT

Unpacked Size

136 kB

Total Files

56

Last publish

Collaborators

  • quiet-front-end