Skip to content
Projects Vue.js Projects
Vue Checkbox Switch

Vue Checkbox Switch

A Vue component for checkbox switch style

3.4K viewsAdded Feb 5, 2019

A Vue component for checkbox's switch style

Installation

Copy src/Switch.vue to your components folder

Example

<template>
    <app-switch classes="is-warning" v-model="value" checked>Test</app-switch>
</template>

<script>
    import Switch from './components/Switch'

    export default {
        components: {
            'app-switch': Switch
        },
        data() {
            return {
                value: false,
                text: ''
            }
        },
        watch: {
            value(val) {
                this.text = val ? 'Yes' : 'No'
            }
        }
    }
</script>

Vue.js Projects

A hand-picked collection of projects made with Vue.js: UI components, input elements, apps, plugins, examples and frameworks.

Newsletter

Get the best new Vue projects in your inbox.

© 2026 vuejsprojects.com