@xrendee/schema-builder
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.1 • Public • Published

如何使用

安装

npm i @xrender/schema-builder

代码演示

/**
 * transform: true
 * defaultShowCode: true
 */
import React from 'react';
import S from '@xrender/schema-builder';

const defaultValue = {
  type: 'object',
  properties: {
    inputName: {
      title: '简单输入框',
      type: 'string',
    },
  },
};

const Demo = () => {
  return (
    <div style={{ height: '80vh' }}>
      <Generator defaultValue={defaultValue} />
    </div>
  );
};

export default Demo;

API

/@xrendee/schema-builder/

    Package Sidebar

    Install

    npm i @xrendee/schema-builder

    Weekly Downloads

    0

    Version

    1.0.0-alpha.1

    License

    MIT

    Unpacked Size

    15.8 kB

    Total Files

    19

    Last publish

    Collaborators

    • lhbxs