{"id":15292222,"url":"https://github.com/tomodomoco/gutenberg-controls","last_synced_at":"2026-02-05T23:31:06.625Z","repository":{"id":57167116,"uuid":"141923649","full_name":"TomodomoCo/gutenberg-controls","owner":"TomodomoCo","description":"Custom controls for the Gutenberg editor for WordPress","archived":false,"fork":false,"pushed_at":"2018-10-04T12:49:52.000Z","size":13,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T09:44:10.664Z","etag":null,"topics":["gutenberg","react","wordpress"],"latest_commit_sha":null,"homepage":"https://tomodomo.co/","language":"JavaScript","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/TomodomoCo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-22T19:14:14.000Z","updated_at":"2023-09-05T17:14:38.000Z","dependencies_parsed_at":"2022-08-30T13:20:18.727Z","dependency_job_id":null,"html_url":"https://github.com/TomodomoCo/gutenberg-controls","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/TomodomoCo%2Fgutenberg-controls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomodomoCo%2Fgutenberg-controls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomodomoCo%2Fgutenberg-controls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomodomoCo%2Fgutenberg-controls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomodomoCo","download_url":"https://codeload.github.com/TomodomoCo/gutenberg-controls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245247586,"owners_count":20584379,"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":["gutenberg","react","wordpress"],"created_at":"2024-09-30T16:17:01.016Z","updated_at":"2026-02-05T23:31:06.618Z","avatar_url":"https://github.com/TomodomoCo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tomodomo Gutenberg Controls\n\nThis repo contains a selection of custom controls for the WordPress Gutenberg editor.\n\n## Controls\n\n### RadioImageControl\n\nThis control adds a visual element to the standard Gutenberg `RadioControl`, allowing you to display a preview image with each item in the picker:\n\n![image-radio-image-control](https://user-images.githubusercontent.com/1231306/43051364-dfdad69c-8de6-11e8-8da2-cecf6c4532ac.png)\n\n#### Usage\n\nThe control has most of the same properties as the standard Gutenberg `RadioControl`, with a slight variation in the addition of the `preview` parameter inside each option.\n\n```jsx\nimport { RadioImageControl } from \"@tomodomo/gutenberg-controls\";\n\n\u003cRadioImageControl\n  label=\"Text Label\"\n  className=\"optional-custom-class-names\"\n  options={[\n    {\n      value: \"option-1\",\n      label: \"Option 1\",\n      preview: \"/path/to/preview-image-1.png\"\n    },\n    {\n      value: \"option-2\",\n      label: \"Option 2\",\n      preview: \"/path/to/preview-image-2.png\"\n    },\n    {\n      value: \"option-3\",\n      label: \"Option 3\",\n      preview: \"/path/to/preview-image-3.png\"\n    },\n  ]}\n  selected={currentlySelectedOption}\n  help=\"Optional help text.\"\n  onChange={onChangeCallback}\n/\u003e\n```\n\n## About Tomodomo\n\nTomodomo is a creative agency for magazine publishers. We use custom design and technology to speed up your editorial workflow, engage your readers, and build sustainable subscription revenue for your business.\n\nLearn more at [tomodomo.co](https://tomodomo.co) or email us: [hello@tomodomo.co](mailto:hello@tomodomo.co)\n\n## License \u0026 Conduct\n\nThis project is licensed under the terms of the MIT License, included in `LICENSE.md`.\n\nAll open source Tomodomo projects follow a strict code of conduct, included in `CODEOFCONDUCT.md`. We ask that all contributors adhere to the standards and guidelines in that document.\n\nThank you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomodomoco%2Fgutenberg-controls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomodomoco%2Fgutenberg-controls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomodomoco%2Fgutenberg-controls/lists"}