Socket
Socket
Sign inDemoInstall

ak-render

Package Overview
Dependencies
169
Maintainers
11
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ak-render

基于 form-render,额外提供了一些自定义组件,比如


Version published
Maintainers
11
Created

Readme

Source

ak-render

基于 form-render,额外提供了一些自定义组件,比如

  • image-upload
  • video-upload

用法

import AkRender, { useForm } from 'ak-render'

const schema = {
  type: 'object',
  properties: {
    string: {
      title: '网址输入自定义组件',
      type: 'string',
    },
    img: {
      title: '图片上传',
      type: 'string',
      widget: 'ImageUpload'
    },
    video: {
      title: '视频上传',
      type: 'string',
      widget: 'VideoUpload'
    }
  },
};

export default () => {
  const form = useForm();

  return (
    <div>
      <AkRender
        form={form}
        widgets={{ site: SiteInput }}
        schema={schema}
      />
    </div>
}

和 form-render api 一致

form-render 文档

FAQs

Last updated on 12 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc