Vue2IconCheckbox Component for Vue 2.x
npm install vue2-icon-checkbox --save
For demo, please see here
1. Import the component
import Vue2IconCheckbox from 'vue2-icon-checkbox';
2.1 Use it globally
Vue.use(Vue2IconCheckbox);
2.2 Or use it locally
components: {
'vue2-icon-checkbox': Vue2IconCheckbox
},
3. Update your app or template:
<div>
...
<vue2-icon-checkbox></vue2-icon-checkbox>
...
</div>
There are no properties.
<template>
<div>
<vue2-icon-checkbox>This is icon checkbox</vue2-icon-checkbox>
</div>
</template>
<script>
import Vue2IconCheckbox from '../src/index';
export default {
name: 'app',
data() {
return {}
},
components: {
Vue2IconCheckbox
},
methods: {},
}
</script>
Contributions are welcome
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build