{"id":13820539,"url":"https://github.com/p-cauty/css-toggle","last_synced_at":"2025-05-16T10:31:25.866Z","repository":{"id":44363172,"uuid":"415848063","full_name":"p-cauty/css-toggle","owner":"p-cauty","description":"A minimalist CSS-only toggle for your websites","archived":false,"fork":false,"pushed_at":"2022-07-09T17:58:28.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-05T08:09:09.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/p-cauty.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":"2021-10-11T08:51:27.000Z","updated_at":"2024-02-09T11:41:55.000Z","dependencies_parsed_at":"2022-08-30T04:10:41.532Z","dependency_job_id":null,"html_url":"https://github.com/p-cauty/css-toggle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-cauty%2Fcss-toggle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-cauty%2Fcss-toggle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-cauty%2Fcss-toggle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-cauty%2Fcss-toggle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p-cauty","download_url":"https://codeload.github.com/p-cauty/css-toggle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225423638,"owners_count":17472152,"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":[],"created_at":"2024-08-04T08:01:05.028Z","updated_at":"2024-11-19T20:30:42.335Z","avatar_url":"https://github.com/p-cauty.png","language":"HTML","readme":"# css-toggle\nA minimalist CSS-only toggle for your websites.\n\n![image](https://user-images.githubusercontent.com/4071737/136765142-2d28886b-de0d-438e-b406-a4d74756c280.png)\n\n![image](https://user-images.githubusercontent.com/4071737/136765564-886c13d4-294c-4934-afd1-544836a67cce.png)\n\n## Installation\n\nJust copy the `toggle.css` file into your project and add the following line of HTML into your `\u003chead\u003e` tag:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"./toggle.css\" /\u003e\n```\n\n## Usage\n\nJust add these two elements anywhere in your HTML:\n\n```html\n\u003cinput type=\"checkbox\" id=\"your_unique_id\" class=\"check\" /\u003e\n\u003clabel for=\"your_unique_id\" class=\"toggle\"\u003e\u003c/label\u003e\n```\n\nYou can add an infinite number of toggles as long as they all have differents id/for attributes.\n\n## Example\n\nYou can see a working example right here : https://p-cauty.github.io/css-toggle/\n\n## Use the value in your backend\n\nJust add a `name` attribute to your `input` tags and handle them as regular checkboxes in your backend.\n","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-cauty%2Fcss-toggle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp-cauty%2Fcss-toggle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-cauty%2Fcss-toggle/lists"}