{"id":15508941,"url":"https://github.com/gfazioli/react-toggle","last_synced_at":"2025-04-09T20:12:44.471Z","repository":{"id":33222682,"uuid":"155372859","full_name":"gfazioli/react-toggle","owner":"gfazioli","description":"A React UI Component to display an awesome Toggle Button control","archived":false,"fork":false,"pushed_at":"2025-03-29T00:04:14.000Z","size":12394,"stargazers_count":17,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T20:12:37.585Z","etag":null,"topics":["component","docz","react","reactjs","toggle","toggle-buttons","toggle-switches","typescript"],"latest_commit_sha":null,"homepage":"https://gfazioli.github.io/react-toggle/","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/gfazioli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2018-10-30T11:20:09.000Z","updated_at":"2024-11-26T15:32:13.000Z","dependencies_parsed_at":"2024-10-02T09:40:51.626Z","dependency_job_id":"6f68d48b-e8b6-445f-8956-6d429d50433c","html_url":"https://github.com/gfazioli/react-toggle","commit_stats":{"total_commits":57,"total_committers":7,"mean_commits":8.142857142857142,"dds":0.4385964912280702,"last_synced_commit":"f485167fe2e2d08e8d3efe0efb35117b776dffa9"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Freact-toggle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Freact-toggle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Freact-toggle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfazioli%2Freact-toggle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gfazioli","download_url":"https://codeload.github.com/gfazioli/react-toggle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["component","docz","react","reactjs","toggle","toggle-buttons","toggle-switches","typescript"],"created_at":"2024-10-02T09:40:42.518Z","updated_at":"2025-04-09T20:12:44.450Z","avatar_url":"https://github.com/gfazioli.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/johnfazioli","https://img.buymeacoffee.com/button-api/?text=Buy"],"categories":[],"sub_categories":[],"readme":"# Overview\n\n![version](https://img.shields.io/npm/v/react-toggle-component.svg)\n![license](https://img.shields.io/npm/l/react-toggle-component.svg)\n![issues](https://img.shields.io/github/issues/gfazioli/react-toggle.svg)\n![type](https://img.shields.io/npm/types/react-toggle-component.svg)\n![last-commit](https://img.shields.io/github/last-commit/gfazioli/react-toggle.svg)\n![npm](https://img.shields.io/npm/dm/react-toggle-component.svg)\n\nThis component is designed to render an awesome switch/toggle component.\n\n[![Edit React Toggle](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/01nxypo6zl?autoresize=1\u0026fontsize=14\u0026hidenavigation=1\u0026view=preview)\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.buymeacoffee.com/johnfazioli\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=Buy me a coffee\u0026emoji=☕\u0026slug=johnfazioli\u0026button_colour=FFDD00\u0026font_colour=000000\u0026font_family=Cookie\u0026outline_colour=000000\u0026coffee_colour=ffffff\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## New in v2.0.x\n\n* Use TypeScript\n* Use React Hooks\n* New [Documentation and Interactive Playground](https://gfazioli.github.io/react-toggle/)\n* Removed the import styles\n* New props\n\n## Upgrade Guide\n\nIf you're using the previous version 1.x, have a look at [Upgrade to 2.0 from 1.x](https://gfazioli.github.io/react-toggle) before upgrade\n\n## Installation\n\nYou can use either **npm**\n\n```bash\nnpm i react-toggle-component\n```\n\nor **yarn**\n\n```bash\nyarn add react-toggle-component\n```\n\n## Basic Usage\n\nFirst of all, remember to import the component.\n\n```jsx\nimport React from \"react\"\n\nimport {Toggle} from \"react-toggle-component\"\n\nfunction Application() {\n\n  return \u003cToggle name=\"toggle-1\" /\u003e;\n\n}\n```\n\n## Documentation\n\nSee the complete [documentation and interactive playground](https://gfazioli.github.io/react-toggle/)\n\n\n## Contributing\n\nThanks for any of your contributions 👏.\n\n## Bugs 🐛\n\nUse the GitHub issues.\n\n## License\n\nMIT Licensed. Copyright (c) Giovambattista Fazioli 2019.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfazioli%2Freact-toggle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgfazioli%2Freact-toggle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfazioli%2Freact-toggle/lists"}