https://github.com/vue-bulma/switch
Switch Component for Vue Bulma
https://github.com/vue-bulma/switch
Last synced: 4 months ago
JSON representation
Switch Component for Vue Bulma
- Host: GitHub
- URL: https://github.com/vue-bulma/switch
- Owner: vue-bulma
- License: mit
- Created: 2016-07-11T09:32:31.000Z (over 9 years ago)
- Default Branch: next
- Last Pushed: 2018-10-14T16:58:12.000Z (about 7 years ago)
- Last Synced: 2025-07-09T13:08:51.501Z (5 months ago)
- Language: Vue
- Size: 25.4 KB
- Stars: 21
- Watchers: 1
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vue-refactor - vue-bulma-switch
- awesome-vuejs - vue-bulma-switch
README
# Switch
Switch component for Vue Bulma.
## Installation
```
$ npm install vue-bulma-switch --save
```
## Examples
```vue
{{ text }}
// do not use below code, because `Switch` is svg tag.
// import Switch from 'vue-bulma-switch'
import VbSwitch from 'vue-bulma-switch'
export default {
components: {
VbSwitch
},
data () {
return {
value: false,
text: ''
}
},
methods: {
change (val) {
this.text = val ? 'Right' : 'Wrong'
}
}
}
```
## Badges


---
> [fundon.me](https://fundon.me) ·
> GitHub [@fundon](https://github.com/fundon) ·
> Twitter [@_fundon](https://twitter.com/_fundon)