@dokoo/v-form-builder

0.0.8 • Public • Published

Dokoo Form Builders

Installation

yarn add @dokoo/v-form-builder
import Vue from 'vue'
import {plugin} from '@dokoo/v-form-builder'

Vue.use(plugin({
  inputs: {
    text: {
      component: VTextField,
      options: {
        dense: true,
        outlined: true
      }
    }
  }
}))

Usage

<template>
  <dokoo-form 
    :inputs="inputs"
  />
</template>

<script>
export default {
  data () {
    return {
      inputs: [
        {
          type: 'text',
          key: 'title',
          options: {
            label: 'My Title'
          }
        }
      ]
    }
  }
}
</script>

Readme

Keywords

none

Package Sidebar

Install

npm i @dokoo/v-form-builder

Weekly Downloads

0

Version

0.0.8

License

MIT

Unpacked Size

7.07 kB

Total Files

6

Last publish

Collaborators

  • dokoo