Get started with amis CDN

Apache-2.0 licensed

Amis library: Lightweight, modular form and UI builder.

Tags:
  • react
  • amis
  • mis
  • renderer
  • json
  • schema

Stable version

Copied!

How to start using amis CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with amis CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/amis.min.css">
</head>
<body>
  <div id="app"></div>
  <script src="https://cdn.cdnhub.io/amis/6.2.2/sdk.js"></script>
  <script>
    const app = amis.createApp({
      el: '#app',
      data: {
        value: '',
      },
      components: {
        myComponent: {
          type: 'field',
          props: {
            name: 'myComponent',
            label: 'My Component',
            component: 'input',
            schema: {
              type: 'string',
            },
          },
        },
      },
      schema: {
        type: 'object',
        properties: {
          text: {
            type: 'string',
            title: 'Text',
          },
          myComponent: {
            type: 'properties',
            properties: {
              myComponent: {},
            },
          },
        },
      },
    });

    app.mount();
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions