https://github.com/vue-bulma/switch
Switch Component for Vue Bulma
https://github.com/vue-bulma/switch
Last synced: 3 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 (about 9 years ago)
- Default Branch: next
- Last Pushed: 2018-10-14T16:58:12.000Z (over 6 years ago)
- Last Synced: 2025-04-02T00:37:33.843Z (3 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
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)