{"id":14972431,"url":"https://github.com/bttstrp/bootstrap-switch","last_synced_at":"2025-12-16T17:25:43.525Z","repository":{"id":6563698,"uuid":"7805574","full_name":"Bttstrp/bootstrap-switch","owner":"Bttstrp","description":"Turn checkboxes and radio buttons in toggle switches.","archived":false,"fork":false,"pushed_at":"2021-10-05T21:37:19.000Z","size":2810,"stargazers_count":5074,"open_issues_count":200,"forks_count":1437,"subscribers_count":179,"default_branch":"master","last_synced_at":"2025-04-23T17:14:55.845Z","etag":null,"topics":["bootstrap","bootstrap-switch","checkbox","radio","switch","toggle-switches","toggles"],"latest_commit_sha":null,"homepage":"","language":"Pug","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/Bttstrp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-24T19:44:03.000Z","updated_at":"2025-04-18T09:57:36.000Z","dependencies_parsed_at":"2022-09-09T10:51:26.554Z","dependency_job_id":null,"html_url":"https://github.com/Bttstrp/bootstrap-switch","commit_stats":null,"previous_names":["nostalgiaz/bootstrap-switch"],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bttstrp%2Fbootstrap-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bttstrp%2Fbootstrap-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bttstrp%2Fbootstrap-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bttstrp%2Fbootstrap-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bttstrp","download_url":"https://codeload.github.com/Bttstrp/bootstrap-switch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253764661,"owners_count":21960603,"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":["bootstrap","bootstrap-switch","checkbox","radio","switch","toggle-switches","toggles"],"created_at":"2024-09-24T13:46:54.400Z","updated_at":"2025-12-16T17:25:43.418Z","avatar_url":"https://github.com/Bttstrp.png","language":"Pug","readme":"# Bootstrap Switch\n[![Dependency Status](https://david-dm.org/Bttstrp/bootstrap-switch.svg?style=flat)](https://david-dm.org/Bttstrp/bootstrap-switch)\n[![devDependency Status](https://david-dm.org/Bttstrp/bootstrap-switch/dev-status.svg?style=flat)](https://david-dm.org/Bttstrp/bootstrap-switch#info=devDependencies)\n[![NPM Version](http://img.shields.io/npm/v/bootstrap-switch.svg?style=flat)](https://www.npmjs.org/)\n\nTurn checkboxes and radio buttons into toggle switches. Created by [Mattia Larentis](http://github.com/nostalgiaz), maintained by [Emanuele Marchi](http://github.com/lostcrew) and [Peter Stein](http://www.bdmdesign.org) with the help of the community.\nCompatible with Bootstrap 4, Bootstrap 3 and Bootstrap 2.\n\nPlay with [demo on my fiddle](https://jsfiddle.net/djibe89/vL87w0j8/).\n\n## Quick start\n\nSeveral quick start options are available:\n\n- Download the [latest release](https://github.com/Bttstrp/bootstrap-switch/releases/latest)\n- Clone the repo: `git clone https://github.com/Bttstrp/bootstrap-switch.git`\n- Install with npm: `npm install bootstrap-switch`\n- Install with yarn: `yarn add bootstrap-switch`\n- Install with Composer: `composer require components/bootstrap-switch`\n- Install with Bower: `bower install bootstrap-switch`\n- Install with NuGet: `PM\u003e Install-Package Bootstrap.Switch` ([NuGet package](https://github.com/blachniet/bootstrap-switch-nuget))\n\nInclude the dependencies: jQuery, Bootstrap and Bootstrap Switch CSS + Javascript:\n\n``` html\n\u003clink href=\"bootstrap.css\" rel=\"stylesheet\"\u003e\n\u003clink href=\"bootstrap-switch.css\" rel=\"stylesheet\"\u003e\n\u003cscript src=\"jquery.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bootstrap-switch.js\"\u003e\u003c/script\u003e\n```\n\nAdd your checkbox:\n\n```html\n\u003cinput type=\"checkbox\" name=\"my-checkbox\" checked\u003e\n```\n\nInitialize Bootstrap Switch on it:\n\n```javascript\n$(\"[name='my-checkbox']\").bootstrapSwitch();\n```\n\nEnjoy.\n\n## Supported browsers\n\nIE9+ and all the other modern browsers.\n\n## LESS\n\n- For Bootstrap 2 (no longer officially supported), import `src/less/bootstrap2/bootstrap-switch.less`\n- For Bootstrap 3, import `src/less/bootstrap3/bootstrap-switch.less`\n\n## SASS/SCSS\n\n- For Bootstrap 4, import `src/sass/bootstrap4/bootstrap-switch.scss`\n\n## Bugs and feature requests\n\nHave a bug or a feature request? Please first search for existing and closed issues. If your problem or idea is not addressed yet, [please open a new issue](https://github.com/Bttstrp/bootstrap-switch/issues/new).\n\nThe new issue should contain both a summary of the issue and the browser/OS environment in which it occurs and a link to the playground you prefer with the reduced test case.\nIf suitable, include the steps required to reproduce the bug.\n\nPlease do not use the issue tracker for personal support requests: [Stack Overflow](https://stackoverflow.com/questions/tagged/bootstrap-switch) is a better place to get help.\n\n### Known issues\n\n- Make sure `.form-control` is not applied to the input. Bootstrap does not support that, refer to [Checkboxes and radios](https://getbootstrap.com/css/#checkboxes-and-radios)\n\n## Integrations\n\n- Angular: [angular-bootstrap-switch](https://github.com/frapontillo/angular-bootstrap-switch)\n- Angular: [angular-toggle-switch](https://github.com/JumpLink/angular-toggle-switch)\n- Knockout: [knockout-bootstrap-switch](https://github.com/pauloortins/knockout-bootstrap-switch)\n\n## License\n\nLicensed under the [MIT License](https://github.com/Bttstrp/bootstrap-switch/blob/master/LICENSE).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbttstrp%2Fbootstrap-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbttstrp%2Fbootstrap-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbttstrp%2Fbootstrap-switch/lists"}