Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

clair-design/jsonschema-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonschema-form

A Vue.js component to generate HTML form from JSON schema.

Usage

import JSONSchemaForm from 'jsonschema-form'

const schema = {
  title: 'Login Form',
  type: 'object',
  required: ['username', 'password'],
  properties: {
    username: { type: 'string' },
    password: { type: 'string', minLength: 8 }
  }
}

export default {
  data () {
    return {
      schema,
      data: {}
    }
  },
  components: {
    'schema-form': JSONSchemaForm
  },
  template: `<schema-form :schema="schema" v-model="data" />`
}

About

A Vue.js component to generate HTML form using JSON schema.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published