Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)