{"id":21094098,"url":"https://github.com/archakov06/react-shnyaga","last_synced_at":"2025-03-14T07:09:05.119Z","repository":{"id":57344552,"uuid":"86511690","full_name":"Archakov06/react-shnyaga","owner":"Archakov06","description":"Is a switch ui component for React","archived":false,"fork":false,"pushed_at":"2017-09-14T07:47:27.000Z","size":131,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T00:36:00.666Z","etag":null,"topics":["check","checkbox","shnyaga","switch","switcher","toggle","toggle-switches","toggler"],"latest_commit_sha":null,"homepage":"https://archakov06.github.io/react-shnyaga/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Archakov06.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}},"created_at":"2017-03-28T22:06:55.000Z","updated_at":"2023-09-11T15:40:05.000Z","dependencies_parsed_at":"2022-09-11T08:42:01.031Z","dependency_job_id":null,"html_url":"https://github.com/Archakov06/react-shnyaga","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archakov06%2Freact-shnyaga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archakov06%2Freact-shnyaga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archakov06%2Freact-shnyaga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archakov06%2Freact-shnyaga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Archakov06","download_url":"https://codeload.github.com/Archakov06/react-shnyaga/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243538139,"owners_count":20307104,"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":["check","checkbox","shnyaga","switch","switcher","toggle","toggle-switches","toggler"],"created_at":"2024-11-19T22:16:15.858Z","updated_at":"2025-03-14T07:09:05.097Z","avatar_url":"https://github.com/Archakov06.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Example](http://archakov.im/uploads/react-shnyaga-1.gif?1)\n[Source demo GIF](http://archakov.im/uploads/react-shnyaga-1.gif?1)\n\n#### **Shnyaga** - is a switch UI component for React.\n\n## [Example](https://archakov06.github.io/react-shnyaga/)\n\n## Installation\n```bash\nnpm install react-shnyaga\n```\n\n## Usage\n```js\nimport React from 'react';\nimport Shnyaga from 'react-shnyaga';\n\nimport 'react-shnyaga/src/styles.css';\n\nReact.render(\u003cShnyaga /\u003e, document.getElementById('root'));\n```\n\n## Props\nThe component takes the following props.\n\n\u003ctable class=\"table table-bordered table-striped\"\u003e\n    \u003cthead\u003e\n    \u003ctr\u003e\n        \u003cth style=\"width: 100px;\"\u003ename\u003c/th\u003e\n        \u003cth style=\"width: 50px;\"\u003etype\u003c/th\u003e\n        \u003cth style=\"width: 50px;\"\u003edefault\u003c/th\u003e\n        \u003cth\u003edescription\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n          \u003ctd\u003echecked\u003c/td\u003e\n          \u003ctd\u003eBoolean\u003c/td\u003e\n          \u003ctd\u003efalse\u003c/td\u003e\n          \u003ctd\u003ewhether switch is checked\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003edisabled\u003c/td\u003e\n          \u003ctd\u003eBoolean\u003c/td\u003e\n          \u003ctd\u003efalse\u003c/td\u003e\n          \u003ctd\u003eswitch is disabled\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003eoffColor\u003c/td\u003e\n          \u003ctd\u003eColor\u003c/td\u003e\n          \u003ctd\u003e#e6e6e6\u003c/td\u003e\n          \u003ctd\u003e`Off` background color\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003eonColor\u003c/td\u003e\n          \u003ctd\u003eColor\u003c/td\u003e\n          \u003ctd\u003e#468cff\u003c/td\u003e\n          \u003ctd\u003e`On` background color\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003eclassName\u003c/td\u003e\n          \u003ctd\u003eString\u003c/td\u003e\n          \u003ctd\u003e\u003c/td\u003e\n          \u003ctd\u003ecustom class name\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003esize\u003c/td\u003e\n          \u003ctd\u003eString\u003c/td\u003e\n          \u003ctd\u003enormal\u003c/td\u003e\n          \u003ctd\u003eSwitch size (default: normal)\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003eonClick\u003c/td\u003e\n          \u003ctd\u003eFunction\u003c/td\u003e\n          \u003ctd\u003e() =\u003e ({})\u003c/td\u003e\n          \u003ctd\u003ecalled when switch is clicked\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n## Contacts\n* \t**E-Mail**\n\t\u003chello@archakov.im\u003e\n* \t**Website**\n\t\u003chttps://archakov.im\u003e\n\n## License\nNow licensed under the MIT License: \u003chttp://deuxhuithuit.mit-license.org\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchakov06%2Freact-shnyaga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchakov06%2Freact-shnyaga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchakov06%2Freact-shnyaga/lists"}