1.0.8 • Published 7 years ago
vue-checkbox-toggle v1.0.8
vue-checkbox-toggle
A simple VueJS checkbox replacment thing.
Installation
First, install it with NPM
npm install vue-checkbox-toggle
Then, import it where needed
import vueCheckboxToggle from 'vue-checkbox-toggle';
...
components: {
vueCheckboxToggle,
}
...
Finally, use it like
<vue-checkbox-toggle
v-model="val"
show-labels
label-checked="on"
label-unchecked="off"
></vue-checkbox-toggle>
Props
Prop | Description |
---|---|
show-labels | Wether or not to show the label |
label-checked | The label to show when the checkbox is checked |
label-unchecked | The label to show when the checkbox is unchecked |
disabled | Disables the control |