Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vue-bulma/switch
Switch Component for Vue Bulma
https://github.com/vue-bulma/switch
Last synced: 2 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 8 years ago)
- Default Branch: next
- Last Pushed: 2018-10-14T16:58:12.000Z (about 6 years ago)
- Last Synced: 2024-10-30T01:09:21.279Z (3 months ago)
- Language: Vue
- Size: 25.4 KB
- Stars: 21
- Watchers: 2
- 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
![](https://img.shields.io/badge/license-MIT-blue.svg)
![](https://img.shields.io/badge/status-stable-green.svg)---
> [fundon.me](https://fundon.me) ·
> GitHub [@fundon](https://github.com/fundon) ·
> Twitter [@_fundon](https://twitter.com/_fundon)