LaravelLaravel & VueJsVueJs

Simple Toggle Switch Component For Vue – v-toggle



Description:

A simple, lightweight switch/toggle button component for Vue.js.

Usage:

Import the v-toggle.

import v-toggle from 'v-toggle';

In your template.

Activate the toggle switches.

new Vue({
  el: '#app',
  data: {
    toggleGradient: true,
    toggleValue: true,
    toggleSmall: true,
    vDisabled: true,
  },
  components: {
    vToggle: window.vToggle.default,
  },
});

Default props.

colorValue: false,
successValue: false,
toggleGradient: false,
toggleSmall: false,
toggleValue: true,

Preview:

Download Details:

Author: eperedo

Live Demo: https://codepen.io/eperedo/pen/ZaOYRE?editors=1011

Download Link: https://github.com/eperedo/vue-toggle/archive/master.zip

Official Website: https://github.com/eperedo/vue-toggle

Last Update: November 22, 2017

Views Total: 0

Install:

# Yarn
$ yarn add v-toggle

# NPM
$ npm install v-toggle --save




Source link
★ READ ALSO ★  VueMediumEditor component for Vue 2

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close