Skip to content

saasquatch/json-schema-editor-visual

 
 

Repository files navigation

SaaSquatch Json Schema Editor

Installing via NPM

npm install @saasquatch/json-schema-editor-visual

Getting Started

import "antd/dist/antd.css";
import "@saasquatch/json-schema-editor-visual/dist/index.css";
import createEditor from "@saasquatch/json-schema-editor-visual";

const SchemaEditor = createEditor();

const SchemaEditorView = () => {
  return (
    <>
      <SchemaEditor />
    </>
  );
};

The schema editor is designed to be compatible with JSON Schema version draft-06. Visit the JSON Schema Website to learn more.

Schema Editor Props

name type default description
data string null the data of editor
onChange function null the function triggered when changes to the editor's data occur

Acknowledgements

Forked from YMFE.

About

A json-schema editor of high efficient and easy-to-use, base on React.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.9%
  • CSS 8.3%
  • HTML 0.8%