v-toggle-switch

Simple, yet configurable toggle switch component with accessibility out of the box!

Usage no npm install needed!

<script type="module">
  import vToggleSwitch from 'https://cdn.skypack.dev/v-toggle-switch';
</script>

README

Vue 2 toggle switch button component (WIP)

Click here for documentation and examples

Introduction

The v-toggle-switch is highly configurable, compliant with accessibility standards, and minimalistic component!

It works nice with Vue 2.

Installation

Use npm install v-toggle-switch or yarn add v-toggle-switch

Register component

  • locally
import ToggleSwitch from 'v-toggle-switch'

export default {
    components: {
        ToggleSwitch
    }
}
  • or globally
import ToggleSwitch from 'v-toggle-switch'

Vue.use(ToggleSwitch)

Usage

<toggle-switch />

Check out the docs for configuration options