# ng2-slide-toggle

> This is a slide toggle switch with dynamic color and text depending on the state.

Latest version **1.1.3** (published 2017-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng2-slide-toggle
pnpm add ng2-slide-toggle
yarn add ng2-slide-toggle
bun add ng2-slide-toggle
```

## 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.1.3 |
| Published | 2017-10-19 |
| First published | 2017-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Harun Urhan |
| Maintainers | harunurhan |

## Links

- npm: https://www.npmjs.com/package/ng2-slide-toggle
- Repository: https://github.com/harunurhan/ng2-slide-toggle
- Issues: https://github.com/harunurhan/ng2-slide-toggle/issues
- npm.io page: https://npm.io/package/ng2-slide-toggle

## Recent versions

- 1.1.3 (latest) — 2017-10-19
- 1.1.2 — 2017-03-30
- 1.1.1 — 2017-03-17
- 1.1.0 — 2017-03-17
- 1.0.2 — 2017-03-16
- 1.0.1 — 2017-03-16

## README

# ng2-slide-toggle

This is a slide toggle switch with dynamic color and text depending on the state.


## Usage

```bash
npm install --save ng2-slide-toggle
```

```typescript
import { SlideToggleModule } from 'ng2-slide-toggle';

@NgModule({
  ...
  imports: [
    ...
    SlideToggleModule,
    ...
  ],
  ...
})
```

```html
<slide-toggle></slide-toggle>
```

## @Input() and @Output() with defaults

```typescript
  @Input() onText = 'ON';
  @Input() offText = 'OFF';
  @Input() onColor = '#0088cc';
  @Input() value = false;

  @Output() valueChange = new EventEmitter<boolean>();
```

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