{"id":13580733,"url":"https://github.com/webcat12345/ngx-ui-switch","last_synced_at":"2026-01-20T14:01:06.625Z","repository":{"id":19831542,"uuid":"88032409","full_name":"webcat12345/ngx-ui-switch","owner":"webcat12345","description":"Angular UI Switch component","archived":false,"fork":false,"pushed_at":"2026-01-19T17:55:28.000Z","size":5333,"stargazers_count":111,"open_issues_count":29,"forks_count":67,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-19T23:36:45.190Z","etag":null,"topics":["angular","angular-cli","angular-ui-switch","ng","ngx","ngx-ui-switch","switch","ui-switch"],"latest_commit_sha":null,"homepage":"https://webcat12345.github.io/ngx-ui-switch/demo/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webcat12345.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-04-12T09:10:11.000Z","updated_at":"2025-10-30T06:08:27.000Z","dependencies_parsed_at":"2023-01-12T02:45:57.103Z","dependency_job_id":"4134a836-8f34-4d2f-abba-10f629010c9c","html_url":"https://github.com/webcat12345/ngx-ui-switch","commit_stats":{"total_commits":437,"total_committers":26,"mean_commits":"16.807692307692307","dds":"0.49885583524027455","last_synced_commit":"eb98f759fdb1bc2040de1199adbf26262ea92183"},"previous_names":["webcat12345/ng2-ui-switch-aot"],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/webcat12345/ngx-ui-switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcat12345%2Fngx-ui-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcat12345%2Fngx-ui-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcat12345%2Fngx-ui-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcat12345%2Fngx-ui-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webcat12345","download_url":"https://codeload.github.com/webcat12345/ngx-ui-switch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcat12345%2Fngx-ui-switch/sbom","scorecard":{"id":527153,"data":{"date":"2025-08-11","repo":{"name":"github.com/webcat12345/ngx-ui-switch","commit":"5757b2250987c50b38e7a9285dc2ea99139ea287"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"22 commit(s) and 9 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy-github-pages.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/deploy-github-pages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy-github-pages.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/deploy-github-pages.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy-github-pages.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/deploy-github-pages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration-tests.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/integration-tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration-tests.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/integration-tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unit-tests.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/unit-tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unit-tests.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/webcat12345/ngx-ui-switch/unit-tests.yml/master?enable=pin","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy-github-pages.yml:1","Warn: no topLevel permission defined: .github/workflows/integration-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/unit-tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"58 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-vc8w-jr9v-vj7f","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-q9mw-68c2-j6m5","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-xf5p-87ch-gxw2","Warn: Project is vulnerable to: GHSA-ch52-vgq2-943f","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T04:42:07.604Z","repository_id":19831542,"created_at":"2025-08-20T04:42:07.604Z","updated_at":"2025-08-20T04:42:07.604Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28604712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-cli","angular-ui-switch","ng","ngx","ngx-ui-switch","switch","ui-switch"],"created_at":"2024-08-01T15:01:54.625Z","updated_at":"2026-01-20T14:01:06.554Z","avatar_url":"https://github.com/webcat12345.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Recently Updated","Third Party Components"],"sub_categories":["[Sep 16, 2024](/content/2024/09/16/README.md)","Form Controls"],"readme":"# Angular UI Switch Component\n\n[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ngx-discuss/Lobby)\n[![Build Status](https://github.com/webcat12345/ngx-ui-switch/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/webcat12345/ngx-ui-switch/actions/workflows/ci.yml)\n[![GitHub Pages](https://img.shields.io/badge/Demo-blue?logo=angular\u0026label=Pages\u0026color=7952B3)](https://webcat12345.github.io/ngx-ui-switch/demo/)\n[![license](https://img.shields.io/github/license/webcat12345/ngx-ui-switch)](https://github.com/webcat12345/ngx-ui-switch/blob/master/LICENSE)\n[![npm version](https://img.shields.io/npm/v/ngx-ui-switch)](https://badge.fury.io/js/ngx-ui-switch)\n[![npm](https://img.shields.io/npm/dm/ngx-ui-switch)](https://www.npmjs.com/package/ngx-ui-switch)\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg)](#contributors)\n\n[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/ngx-ui-switch)\n\n## Description\n\nThis is a simple iOS 7 style switch component for [Angular](https://angular.io).\n\n![alt](logo.png)\n\nInspired by [switchery](https://github.com/abpetkov/switchery) in [Angular](https://angular.io).\n\n## Installation\n\nnpm: `npm install ngx-ui-switch --save`\n\nyarn: `yarn add ngx-ui-switch`\n\n**Some features are not available in previous versions:**\n\n- CSS styling\n- Switch content (checkedLabel, uncheckedLabel) [#309](https://github.com/webcat12345/ngx-ui-switch/issues/309) [#343](https://github.com/webcat12345/ngx-ui-switch/issues/343)\n- Global options\n- beforeChange event [#314](https://github.com/webcat12345/ngx-ui-switch/issues/314) [#359](https://github.com/webcat12345/ngx-ui-switch/pull/359)\n\n## Usage\n\n- Import into a module (`AppModule` example below)\n\n```javascript\n// app.module.ts\nimport { UiSwitchModule } from 'ngx-ui-switch';\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  imports: [BrowserModule, UiSwitchModule],\n  declarations: [AppComponent],\n  bootstrap: [AppComponent]\n})\nexport class AppModule {}\n```\n\n- Add default css file to appropriate project(s) `angular.json`\n\n```json\n\"styles\": [\n  \"src/styles.css\",\n  \"./node_modules/ngx-ui-switch/ui-switch.component.css\"\n]\n```\n\nAlternatively, the scss version can be imported into a scss file:\n\n```scss\n@import '~ngx-ui-switch/ui-switch.component.scss';\n```\n\n## Global config\n\nUse when you want to change default values globally.\n\nThese settings will override anything passed in via property bindings.\n\n```javascript\nimport { UiSwitchModule } from 'ngx-ui-switch';\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  imports: [\n    BrowserModule,\n    UiSwitchModule.forRoot({\n      size: 'small',\n      color: 'rgb(0, 189, 99)',\n      switchColor: '#80FFA2',\n      defaultBgColor: '#00ACFF',\n      defaultBoColor : '#476EFF',\n      checkedLabel: 'on',\n      uncheckedLabel: 'off'\n    })\n  ],\n  declarations: [AppComponent],\n  bootstrap: [AppComponent]\n})\nexport class AppModule {}\n```\n\n```html\n\u003cui-switch\u003e\u003c/ui-switch\u003e\n```\n\nNote that if you are using the switch in a child `NgModule`, such as a lazy loaded module, then you must also import the module in the module itself or within a shared module. Otherwise you will get the error that it is an unknown component as seen in issue [#227](https://github.com/webcat12345/ngx-ui-switch/issues/227).\n\n# Two way binding\n\n```html\n\u003cui-switch [(ngModel)]=\"enable\"\u003e\u003c/ui-switch\u003e\n```\n\n# Params\n\n### checked\n\n\u003e type: *boolean*\n\n\u003e default: false\n\n```html\n\u003cui-switch checked\u003e\u003c/ui-switch\u003e\n\u003cui-switch [checked]=\"false\"\u003e\u003c/ui-switch\u003e\n```\n\n### disabled\n\n\u003e type: *boolean*\n\n\u003e default: false\n\n```html\n\u003cui-switch disabled\u003e\u003c/ui-switch\u003e\n\u003cui-switch checked [disabled]=\"true\"\u003e\u003c/ui-switch\u003e\n```\n\n### loading\n\n*Show a loading state for the toggle button when true. Often utilized with beforeChange.*\n\n\u003e type: *boolean*\n\n\u003e default: false\n\n```html\n\u003cui-switch [loading]=\"isLoading\"\u003e\n  \u003ci class=\"fa fa-spinner fa-pulse\" *ngIf=\"isLoading\"\u003e\u003c/i\u003e\n\u003c/ui-switch\u003e\n```\n\n### change\n\n\u003e type: *boolean*\n\n\u003e default: noop\n\n```html\n\u003cui-switch (change)=\"onChange($event)\"\u003e\u003c/ui-switch\u003e\n```\n\n### changeEvent\n\n\u003e type: *MouseEvent*\n\n\u003e default: noop\n\n```html\n\u003cui-switch (changeEvent)=\"onChangeEvent($event)\"\u003e\u003c/ui-switch\u003e\n\u003cui-switch (changeEvent)=\"$event.stopPropagation()\"\u003e\u003c/ui-switch\u003e\n```\n\n### valueChange\n\n\u003e type: *boolean*\n\n\u003e default: noop\n\n```html\n\u003cui-switch (valueChange)=\"onValueChange($event)\"\u003e\u003c/ui-switch\u003e\n```\n\n### beforeChange\n\nUtilize an observable to check that the toggle event should complete\n\n\u003e type: *Observable\\\u003cboolean\\\u003e*\n\n\u003e default: noop\n\n```html\n\u003cui-switch [beforeChange]=\"OnBeforeChange\"\u003e\n\u003c/ui-switch\u003e\n```\n\n```typescript\nOnBeforeChange: Observable\u003cboolean\u003e = new Observable((observer) =\u003e {\n  const timeout = setTimeout(() =\u003e {\n    observer.next(true);\n  }, 2000);\n  return () =\u003e clearTimeout(timeout);\n});\n```\n\n### size\n\n\u003e type: *string*\n\n\u003e default: medium\n\n```html\n\u003cui-switch size=\"small\"\u003e\u003c/ui-switch\u003e\n\u003cui-switch size=\"large\"\u003e\u003c/ui-switch\u003e\n```\n\n### reverse\n\n\u003e type: *boolean*\n\n\u003e default: false\n\n```html\n\u003cui-switch reverse\u003e\u003c/ui-switch\u003e\n```\n\n### color\n\n\u003e type: *string*\n\n\u003e default: rgb(100, 189, 99)\n\n```html\n\u003cui-switch color=\"red\"\u003e\u003c/ui-switch\u003e\n```\n\n### switchColor\n\n\u003e type: *string*\n\n\u003e default: #fff\n\n\n```html\n\u003cui-switch switchColor=\"#fcfcfc\"\u003e\u003c/ui-switch\u003e\n```\n\n### defaultBgColor\n\nDefault background color\n\n\u003e type: *string*\n\n\u003e default: #fff\n\n\n```html\n\u003cui-switch defaultBgColor=\"red\"\u003e\u003c/ui-switch\u003e\n```\n\n### defaultBoColor\n\n*Default border color*\n\n\u003e type: *string*\n\n\u003e default: #dfdfdf\n\n\n```html\n\u003cui-switch defaultBoColor=\"black\"\u003e\u003c/ui-switch\u003e\n```\n\n### checkedLabel\n\n*Checked label (on)*\n\n\u003e type: *string*\n\n\u003e default: null\n\n\n```html\n\u003cui-switch checkedLabel=\"on\"\u003e\u003c/ui-switch\u003e\n```\n\n### uncheckedLabel\n\n*Unchecked label (off)*\n\n\u003e type: *string*\n\n\u003e default: null\n\n```html\n\u003cui-switch uncheckedLabel=\"off\"\u003e\u003c/ui-switch\u003e\n```\n\n### checkedTextColor\n\nchecked text color of the label (on)\n\n\u003e type: *string*\n\n\u003e default: black\n\n```html\n\u003cui-switch checkedTextColor=\"#7CFC00\"\u003e\u003c/ui-switch\u003e\n```\n\n### uncheckedTextColor\n\nUnchecked text color of the label (off)\n\n\u003e type: *string*\n\n\u003e default: black\n\n```html\n\u003cui-switch uncheckedTextColor=\"red\"\u003e\u003c/ui-switch\u003e\n```\n\n## Switch Content\n\n```html\n\u003cui-switch uncheckedLabel=\"off\"\u003e\n  \u003cimg src=\"\"/\u003e\n\u003c/ui-switch\u003e\n```\n\n## Aria Label\n\n```html\n\u003cui-switch [ariaLabel]=\"'labelName'\"\u003e\u003c/ui-switch\u003e\n```\n\n## Development\n\n### Setup\n\n```sh\nyarn install\n```\n\n### Demo\n\nEdit files in `src/app` to add to the demo or try changes to the library.\n\n### Build library\n\n*First, edit version in `package.json` and `src/lib/package.json` to publish a new version to npmjs.org*\n\n```sh\n# Build the library into dist/{es5,es2015}\nyarn build\n# Publish to npm\nyarn release\n```\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n| [\u003cimg src=\"https://avatars3.githubusercontent.com/u/19761422?v=4\" width=\"100px;\" alt=\"webcat_black\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ewebcat_black\u003c/b\u003e\u003c/sub\u003e](https://webcat12345.github.io/)\u003cbr /\u003e[💻](https://github.com/webcat12345/ngx-ui-switch/commits?author=webcat12345 \"Code\") [🎨](#design-webcat12345 \"Design\") [💡](#example-webcat12345 \"Examples\") [🤔](#ideas-webcat12345 \"Ideas, Planning, \u0026 Feedback\") [👀](#review-webcat12345 \"Reviewed Pull Requests\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/735717?v=4\" width=\"100px;\" alt=\"Chris McKnight\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eChris McKnight\u003c/b\u003e\u003c/sub\u003e](https://github.com/cmckni3)\u003cbr /\u003e[💬](#question-cmckni3 \"Answering Questions\") [💻](https://github.com/webcat12345/ngx-ui-switch/commits?author=cmckni3 \"Code\") [📖](https://github.com/webcat12345/ngx-ui-switch/commits?author=cmckni3 \"Documentation\") [🤔](#ideas-cmckni3 \"Ideas, Planning, \u0026 Feedback\") [🚇](#infra-cmckni3 \"Infrastructure (Hosting, Build-Tools, etc)\") [🔌](#plugin-cmckni3 \"Plugin/utility libraries\") [👀](#review-cmckni3 \"Reviewed Pull Requests\") [🔧](#tool-cmckni3 \"Tools\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/302721?v=4\" width=\"100px;\" alt=\"Jakub\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJakub\u003c/b\u003e\u003c/sub\u003e](https://github.com/kubiq)\u003cbr /\u003e[💻](https://github.com/webcat12345/ngx-ui-switch/commits?author=kubiq \"Code\") [📖](https://github.com/webcat12345/ngx-ui-switch/commits?author=kubiq \"Documentation\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/915077?v=4\" width=\"100px;\" alt=\"Serhii Kovalenko\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSerhii Kovalenko\u003c/b\u003e\u003c/sub\u003e](https://github.com/cmajsmith)\u003cbr /\u003e[💻](https://github.com/webcat12345/ngx-ui-switch/commits?author=cmajsmith \"Code\") [💡](#example-cmajsmith \"Examples\") [📦](#platform-cmajsmith \"Packaging/porting to new platform\") | [\u003cimg src=\"https://avatars1.githubusercontent.com/u/1156100?v=4\" width=\"100px;\" alt=\"Richard McSharry\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eRichard McSharry\u003c/b\u003e\u003c/sub\u003e](https://github.com/rmcsharry)\u003cbr /\u003e[📖](https://github.com/webcat12345/ngx-ui-switch/commits?author=rmcsharry \"Documentation\") | [\u003cimg src=\"https://avatars1.githubusercontent.com/u/507874?v=4\" width=\"100px;\" alt=\"bitsprint\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ebitsprint\u003c/b\u003e\u003c/sub\u003e](https://github.com/bitsprint)\u003cbr /\u003e[🚇](#infra-bitsprint \"Infrastructure (Hosting, Build-Tools, etc)\") [📦](#platform-bitsprint \"Packaging/porting to new platform\") [🔧](#tool-bitsprint \"Tools\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/11628507?v=4\" width=\"100px;\" alt=\"Gianluca Paronitti\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGianluca Paronitti\u003c/b\u003e\u003c/sub\u003e](http://www.gamepix.com)\u003cbr /\u003e[💻](https://github.com/webcat12345/ngx-ui-switch/commits?author=gparonitti \"Code\") |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| [\u003cimg src=\"https://avatars1.githubusercontent.com/u/5429780?v=4\" width=\"100px;\" alt=\"Milos Bejda\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMilos Bejda\u003c/b\u003e\u003c/sub\u003e](http://mbejda.com)\u003cbr /\u003e[💻](https://github.com/webcat12345/ngx-ui-switch/commits?author=mbejda \"Code\") [📖](https://github.com/webcat12345/ngx-ui-switch/commits?author=mbejda \"Documentation\") [💡](#example-mbejda \"Examples\") | [\u003cimg src=\"https://avatars1.githubusercontent.com/u/590274?v=4\" width=\"100px;\" alt=\"kameelyan\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ekameelyan\u003c/b\u003e\u003c/sub\u003e](https://github.com/kameelyan)\u003cbr /\u003e[💻](https://github.com/webcat12345/ngx-ui-switch/commits?author=kameelyan \"Code\") [📖](https://github.com/webcat12345/ngx-ui-switch/commits?author=kameelyan \"Documentation\") [💡](#example-kameelyan \"Examples\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/20248805?v=4\" width=\"100px;\" alt=\"Grégory Alary\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGrégory Alary\u003c/b\u003e\u003c/sub\u003e](https://gregoryalary.github.io/)\u003cbr /\u003e[💬](#question-gregoryalary \"Answering Questions\") [🐛](https://github.com/webcat12345/ngx-ui-switch/issues?q=author%3Agregoryalary \"Bug reports\") [💻](https://github.com/webcat12345/ngx-ui-switch/commits?author=gregoryalary \"Code\") [🎨](#design-gregoryalary \"Design\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/2574403?v=4\" width=\"100px;\" alt=\"zehtravassos\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ezehtravassos\u003c/b\u003e\u003c/sub\u003e](https://github.com/zehtravassos)\u003cbr /\u003e[💻](https://github.com/webcat12345/ngx-ui-switch/commits?author=zehtravassos \"Code\") [🎨](#design-zehtravassos \"Design\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/18656830?v=4\" width=\"100px;\" alt=\"H. Rüger\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eH. Rüger\u003c/b\u003e\u003c/sub\u003e](https://github.com/hrueger)\u003cbr /\u003e[🐛](https://github.com/webcat12345/ngx-ui-switch/issues?q=author%3Ahrueger \"Bug reports\") [💻](https://github.com/webcat12345/ngx-ui-switch/commits?author=hrueger \"Code\") [🚧](#maintenance-hrueger \"Maintenance\") |\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebcat12345%2Fngx-ui-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebcat12345%2Fngx-ui-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebcat12345%2Fngx-ui-switch/lists"}