@flodejs/json-schema-editor-antd
Version:
Json Schema Editor
62 lines (44 loc) • 1.38 kB
Markdown
# @flodejs/json-schema-editor-antd
[](https://npmjs.org/package/@flodejs/json-schema-editor-antd)
[](https://npmjs.org/package/@flodejs/json-schema-editor-antd)

[Antd Design](https://ant.design/) 风格的 Json Schema 可视化编辑器。
[Arco Design](https://arco.design/) 风格:https://github.com/lin-mt/json-schema-editor-arco
## Usage
```shell
npm install @flodejs/json-schema-editor-antd
```
```jsx
import { useState } from 'react';
import JsonSchemaEditor from '@flodejs/json-schema-editor-antd';
export default () => {
const [jsonSchema, setJsonSchema] = useState();
return (
<JsonSchemaEditor
value={jsonSchema}
onChange={(schema) => {
setJsonSchema(schema);
}}
/>
);
};
```
## Development
```bash
# 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
# Locally preview the production build.
$ yarn run docs:preview
# check your project for potential problems
$ yarn run doctor
```
## LICENSE
MIT