- Notifications
You must be signed in to change notification settings - Fork0
vue-comps/vue-toggle
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A toggle button for simple state management.
npm install --save-dev vue-toggle
or includebuild/bundle.js.
# in your componentcomponents:"toggle":require("vue-toggle")# or, when using bundle.jscomponents:"toggle":window.vueComps.toggle
<toggle> click to switch<spanslot="on"> off</span><spanslot="off"> on</span></toggle>
For examples seedev/.
| Name | type | default | description |
|---|---|---|---|
| is-on | Boolean | false | (two-way) toggle state |
| on-class | String | "on" | class of button when on |
| off-class | String | "off" | class of button when off |
| disabled | Boolean | false | is disabled |
| Name | description || ---:| --- | ---| --- || off | will be emitted on click when state was on || on | will be emitted on click when state was off || toggle | will be emitted on click |
Clone repository.
npm installnpm run dev
Browse tohttp://localhost:8080/.
Copyright (c) 2016 Paul PflugradtLicensed under the MIT license.
About
A toggle button for simple state management.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.