# vb-switch

> Switch component for Vue Bulma

Latest version **1.0.8** (published 2018-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install vb-switch
pnpm add vb-switch
yarn add vb-switch
bun add vb-switch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2018-01-21 |
| First published | 2017-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yanlu su |
| Maintainers | suyanlu |
| Keywords | vue, bulma, vb, vb-component, vb-switch, switch |

## Links

- npm: https://www.npmjs.com/package/vb-switch
- Repository: https://github.com/yanlusu/switch
- npm.io page: https://npm.io/package/vb-switch

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2018-01-21
- 1.0.7 — 2017-11-18
- 1.0.6 — 2017-11-16
- 1.0.5 — 2017-11-15

## README

# Switch

Switch component for Vue Bulma.


## Installation

```
$ npm install vb-switch --save
```


## Examples

```vue
<template>
  <div>
    <p>
      <vb-switch type="success" size="large" checked v-model="value"></vb-switch>
    </p>
    <p>
      {{ text }}
    </p>
  </div>
</template>

<script>
// 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: ''
    }
  },

  watch: {
    value (val) {
      this.text = val ? 'Right' : 'Wrong'
    }
  }
}
</script>
```


## Badges

![](https://img.shields.io/badge/license-MIT-blue.svg)
![](https://img.shields.io/badge/status-stable-green.svg)

---

> [fundon.me](https://fundon.me) &nbsp;&middot;&nbsp;
> GitHub [@fundon](https://github.com/fundon) &nbsp;&middot;&nbsp;
> Twitter [@_fundon](https://twitter.com/_fundon)

---
_Source: https://npm.io/package/vb-switch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
