# @ngx-tiny/switch-input

> ![minzipped size](https://img.shields.io/bundlephobia/minzip/@ngx-tiny/switch-input?style=for-the-badge) ![last commit](https://img.shields.io/github/last-commit/aavanzyl/ngx-tiny?style=for-the-badge) ![licence](https://img.shields.io/npm/l/@ngx-tiny/sw

Latest version **10.0.0** (published 2020-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ngx-tiny/switch-input
pnpm add @ngx-tiny/switch-input
yarn add @ngx-tiny/switch-input
bun add @ngx-tiny/switch-input
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 10.0.0 |
| Published | 2020-08-27 |
| First published | 2019-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 42.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Anton Van Zyl |
| Maintainers | aavanzyl |
| Keywords | angular, ng, ng2, ngx, angular2, angular8, ngx-switch-input, switch, switch-input, input, toggle |

## Links

- npm: https://www.npmjs.com/package/@ngx-tiny/switch-input
- Repository: https://github.com/aavanzyl/ngx-tiny
- Homepage: https://aavanzyl.github.io/ngx-tiny
- Issues: https://github.com/aavanzyl/ngx-tiny/issues
- Funding: https://www.patreon.com/bePatron?u=27640996
- npm.io page: https://npm.io/package/@ngx-tiny/switch-input

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [@temporal-architect/claude-plugin](https://npm.io/package/@temporal-architect/claude-plugin.md) — 335 weekly downloads

## Recent versions

- 10.0.0 (latest) — 2020-08-27
- 8.0.1 — 2019-12-18
- 8.0.0 — 2019-12-03

## README

# @ngx-tiny/switch-input

![minzipped size](https://img.shields.io/bundlephobia/minzip/@ngx-tiny/switch-input?style=for-the-badge)
![last commit](https://img.shields.io/github/last-commit/aavanzyl/ngx-tiny?style=for-the-badge)
![licence](https://img.shields.io/npm/l/@ngx-tiny/switch-input?style=for-the-badge)


Angular Switch Input.

* Angular 10 implementation
* Works with SSR
* No Dependencies
* Works with Angular Forms and Standalone
* Themeable to own requirements

## Installation

```sh
$ npm i @ngx-tiny/switch-input
```


## Example

![Switch Input Example](https://raw.githubusercontent.com/aavanzyl/ngx-tiny/master/projects/assets/ngx-switch-input.png)

## Documentation

__Full Docs:__

You can find the full documentation at https://aavanzyl.github.io/ngx-tiny which includes
* Installation instructions
* Usage and Demos
* API Reference

__Quick Start:__

1. Install with [npm](https://www.npmjs.com): `npm install @ngx-tiny/switch-input --save`

2. Add __NgxSwitchInputModule__ to your __@NgModule__ like example below
    ```typescript

    import { NgModule } from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    import { NgxSwitchInputModule } from '@ngx-tiny/switch-input';
    
    import { AppComponent } from './app.component';
    
    @NgModule({
        imports: [BrowserModule, NgxSwitchInputModule],
        declarations: [AppComponent],
        bootstrap: [AppComponent]
    })
    
    export class AppModule { }

    ```
 4. Add the component to your view for basic
    ```html
    <ngx-switch-input 
        label="Toggle Me" 
        [value]="isActive" 
        (valueChange)="onChange($event)">
    </ngx-switch-input>
    ```
    or for Angular forms
    ```html 
    <form [formGroup]="myForm" (ngSubmit)="onSubmit()">
        <ngx-switch-input label="Toggle Me" formControlName="isActive"></ngx-switch-input>
        <br/>
        <button class="btn" type="submit">Submit</button>
    </form>
    ```
    The examples above are basic. See more examples in the docs.
    

## Support

Support me by [becoming a patron](https://www.patreon.com/bePatron?u=27640996) and buying me a beer :) 

## License
See the [LICENSE][license] file.


[license]: /LICENSE
[contributing]: /CONTRIBUTING.md
[docs]: /DOCUMENTATION.md

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