# toggle-switch-button-vue

> A vue component with two way binding via v-model a boolean value toggle true/false

Latest version **1.0.0** (published 2021-09-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install toggle-switch-button-vue
pnpm add toggle-switch-button-vue
yarn add toggle-switch-button-vue
bun add toggle-switch-button-vue
```

## 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.0 |
| Published | 2021-09-14 |
| First published | 2021-09-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | developergovindgupta |
| Maintainers | developergovindgupta |
| Keywords | toggle, switch, button, vue-3, two-way-binding, v-model, on-off, true-false |

## Links

- npm: https://www.npmjs.com/package/toggle-switch-button-vue
- Repository: https://github.com/developergovindgupta/toggle-switch-button-vue
- Homepage: https://github.com/developergovindgupta/toggle-switch-button-vue#readme
- Issues: https://github.com/developergovindgupta/toggle-switch-button-vue/issues
- npm.io page: https://npm.io/package/toggle-switch-button-vue

## Recent versions

- 1.0.0 (latest) — 2021-09-14

## README

# toggle-switch-button-vue
# VUE-3
## No Dependency  only single vue component file
### A vue component with two way binding via v-model a boolean value toggle true/false
### also label property shows label on button with '|' separated. As "ON|OFF" 




![](https://raw.githubusercontent.com/developergovindgupta/toggle-switch-button-vue/master/src/assets/toggleswitchbuttonoff.png)
![](https://raw.githubusercontent.com/developergovindgupta/toggle-switch-button-vue/master/src/assets/toggleswitchbuttonon.png)



## Properties

|props   | type | default | description | 
| ------------ | ------------ | ------------ | ------------ |
| v-model  | Boolean  | false | two way binding that toggle value true/false |
|label|string| | pipe separated value "ON&#124;OFF"|
|className|string|"toggle-switch-button"|custom css class name to change the UI layout|




## How to Install
copy following code and run on CLI

`npm install toggle-switch-button-vue`

# How to use 
Example Code 

[download from gitHub](https://github.com/developergovindgupta/toggle-switch-button-vue "download from gitHub")


## usase

**template sectioln**

    <div>
        <ToggleSwitchButton v-model="this.isActive" label="ON|OFF" />
    </div>
    <h1>{{ isActive }}</h1>


**script section**

    import ToggleSwitchButton from "toggle-switch-button-vue";

**components section**

    components: {
        ToggleSwitchButton
    },


**data section**

    data() {
        return {
          isActive: true
        };
    },
  

**methods section**

    methods: {
        
      }
	  
	  
## View Demo
[View Demo](https://codesandbox.io/s/toggle-switch-button-vue-ko6yz?file=/src/App.vue)

## License Free

## Author : Govind Prasad Gupta
### developergovindgupta
### email : govindprasadguptamca@gmail.com

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