v-radio-checkbox

An vue radio/checkbox components

Usage no npm install needed!

<script type="module">
  import vRadioCheckbox from 'https://cdn.skypack.dev/v-radio-checkbox';
</script>

README

v-radio-checkbox

An vue radio/checkbox components

Demo

Live Demo

Installation:

npm install --save-dev v-radio-checkbox

How to use

1、To include this project you need to require the module by using CommonJS syntax or ES6 Modules Syntax (recommended).For example,in main.js file:

import vRadio from 'v-radiio-checkbox'
import vCheckbox from 'v-radiio-checkbox'

Vue.use(vRadio)
Vue.use(vCheckbox)

2、In the .vue file to use:

<template>
    <div>
        <vRadio id="myradio" name="myradio" value="1">
            I'm a robot
        </vRadio>
        <vRadio id="myradio2" name="myradio2" value="0">
            I'm not a robot
        </vRadio>
    </div>
</template>