{"id":42385022,"url":"https://github.com/happyprime/toggle-block","last_synced_at":"2026-01-27T22:51:28.717Z","repository":{"id":224132775,"uuid":"629799269","full_name":"happyprime/toggle-block","owner":"happyprime","description":"Add a toggle in the WordPress block editor to show and hide another block.","archived":false,"fork":false,"pushed_at":"2025-06-11T18:50:36.000Z","size":554,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"trunk","last_synced_at":"2025-12-01T04:42:59.345Z","etag":null,"topics":["wordpress-block","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/happyprime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-04-19T03:44:09.000Z","updated_at":"2025-06-11T18:49:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"517e8198-24e9-4c3e-b6de-45b9c8004799","html_url":"https://github.com/happyprime/toggle-block","commit_stats":null,"previous_names":["happyprime/toggle-block"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/happyprime/toggle-block","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyprime%2Ftoggle-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyprime%2Ftoggle-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyprime%2Ftoggle-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyprime%2Ftoggle-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/happyprime","download_url":"https://codeload.github.com/happyprime/toggle-block/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyprime%2Ftoggle-block/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28826322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["wordpress-block","wordpress-plugin"],"created_at":"2026-01-27T22:51:27.149Z","updated_at":"2026-01-27T22:51:28.712Z","avatar_url":"https://github.com/happyprime.png","language":"JavaScript","readme":"# Toggle Block\n\nAdd a toggle in the WordPress block editor to show and hide another block.\n\n## Usage\n\nToggle Block is a very rudimentary block. It renders as a `\u003cbutton\u003e` element on the front-end that is used to show or hide another target element (via its ID) on the page. It uses `aria-controls` and `aria-label` in an attempt to make it compatible with assistive technology.\n\nThe intended use is in a site's template, through the site editor or your theme files, rather than as a block that is frequently used in content.\n\nWhen the toggle block is selected in the editor, toggle settings appear in the sidebar panel:\n\n\u003cimg src=\"assets/screenshot-toggle-block-001.png\" alt=\"A screenshot of the sidebar panel in the block editor with text input fields for Controls ID and screen reader text.\" style=\"width:250px; height:auto;\"\u003e\n\nThe \"Controls ID\" entered in this panel must match the \"HTML anchor\" assigned to another block through its advanced panel:\n\n\u003cimg src=\"assets/screenshot-toggle-block-002.png\" alt=\"A screenshot of the sidebar panel in the block editor with a text input for HTML anchor\" style=\"width:250px; height:auto;\"\u003e\n\n## Changelog\n\n### 0.5.0\n\n* Wrap button text in a `\u003cspan\u003e` element to help with styling.\n* Move editor styles to an editor-only stylesheet.\n* Update to latest dependencies, build process, and code standards.\n\n### 0.4.0\n\n* Add an attribute to toggle a toggle block-specific class on the body element.\n* Allow the toggle block to be placed inside the `core/navigation` block.\n* Add transform support from/to `core/navigation-link` blocks.\n* Update to latest dependencies, build process, and code standards.\n\n### 0.3.1\n\n* Add persisting `toggle-block-has-been-toggled` class to toggled element when first toggled.\n\n### 0.3.0\n\n* Add persisting `toggle-block-has-toggled` class to toggle button when first clicked.\n* Update `@wordpress/scripts` to 27.7.0.\n* Update project dependencies.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappyprime%2Ftoggle-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhappyprime%2Ftoggle-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappyprime%2Ftoggle-block/lists"}