{"id":42609126,"url":"https://github.com/daun/statamic-icon-button-fieldtypes","last_synced_at":"2026-01-29T02:21:13.722Z","repository":{"id":324687865,"uuid":"1098120783","full_name":"daun/statamic-icon-button-fieldtypes","owner":"daun","description":"Icon-only button fieldtypes for Statamic","archived":false,"fork":false,"pushed_at":"2025-12-11T21:39:52.000Z","size":2196,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-14T13:28:37.320Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/daun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-17T09:30:39.000Z","updated_at":"2025-12-09T22:29:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/daun/statamic-icon-button-fieldtypes","commit_stats":null,"previous_names":["daun/statamic-icon-group-fieldtype","daun/statamic-icon-button-fieldtypes"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/daun/statamic-icon-button-fieldtypes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fstatamic-icon-button-fieldtypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fstatamic-icon-button-fieldtypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fstatamic-icon-button-fieldtypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fstatamic-icon-button-fieldtypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daun","download_url":"https://codeload.github.com/daun/statamic-icon-button-fieldtypes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fstatamic-icon-button-fieldtypes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28860816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-01-29T02:21:13.140Z","updated_at":"2026-01-29T02:21:13.710Z","avatar_url":"https://github.com/daun.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Statamic Icon Button Fieldtypes\n\nIcon-only button fieldtypes for compact toggles and switches.\n\n![Example icon button fields](art/icon-buttons.png)\n\n## Installation\n\nInstall the addon via Composer:\n\n```bash\ncomposer require daun/statamic-icon-button-fieldtypes\n```\n\n## Fieldtypes\n\nThe addon ships with three fieldtypes, each extending a native Statamic fieldtype:\n\n- Single-choice **[Icon Group](#icon-group)** extends the native Button Group\n- Multi-Choice **[Icon Toggles](#icon-toggles)** extends the Checkboxes fieldtype\n- Boolean **[Icon Toggle](#icon-toggle)** extends the Toggle fieldtype\n\n### Icon Group\n\nThe **Icon Group** fieldtype extends the native [Button Group](https://statamic.dev/fieldtypes/button_group)\nfieldtype and allows selecting a single option from a predefined set of options.\n\n![Example icon group fields](art/icon-group.png)\n\n```diff\nalign:\n  display: Align\n- type: button_group\n+ type: icon_group\n  options:\n    -\n      value: Left\n      key: left\n+     icon: align-start-vertical\n    -\n      value: Right\n      key: right\n+     icon: align-end-vertical\n```\n\n## Icon Toggles\n\nThe **Icon Toggles** fieldtype extends the native [Checkboxes](https://statamic.dev/fieldtypes/checkboxes)\nfieldtype and allows selecting one or more options from a predefined set of options.\n\n![Example icon toggles field](art/icon-toggles.png)\n\n```diff\nplayback:\n  display: Playback options\n- type: checkboxes\n+ type: icon_toggles\n  options:\n    -\n      value: sound\n      key: sound\n+     icon: volume\n    -\n      value: Loop\n      key: loop\n+     icon: repeat\n    -\n      value: Captions\n      key: captions\n+     icon: captions\n```\n\n## Icon Toggle\n\nThe **Icon Toggle** fieldtype extends the native [Toggle](https://statamic.dev/fieldtypes/toggle)\nfieldtype and allows switching a single value on or off.\n\n![Example icon toggles field](art/icon-toggle.png)\n\n```diff\nfeatured:\n  display: Featured\n- type: toggle\n+ type: icon_toggle\n+ button_icon: star\n```\n\nNote that the option here is called `button_icon` because `icon` key is a reserved key by Statamic.\n\n## Custom Icon Sets\n\nIcons are pulled from the built-in control panel icon set. To use icons from a different set, change the `set` option of each field to the desired set.\n\n### Example: Lucide\n\nThe example steps below will install and use icons from the [Lucide](https://lucide.dev/icons/) icon\nset, used in the examples above.\n\nInstall icon set:\n\n```sh\nnpm install lucide-static\n```\n\nRegister icon set in control panel:\n\n```js\n// resource/js/cp.js\n\nimport { registerIconSet } from '@statamic/cms/ui';\n\nStatamic.booting(() =\u003e {\n    registerIconSet('lucide', import.meta.glob(\n        '../../node_modules/lucide-static/icons/*.svg',\n        { query: '?raw', import: 'default' }\n    ));\n});\n```\n\nSwitch field to use icon set:\n\n```diff\nvisibility:\n  type: icon_group\n  display: Visibility\n+ set: lucide\n  options:\n    -\n      value: Public\n      key: public\n      icon: eye\n    -\n      value: Private\n      key: private\n      icon: eye-off\n```\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Fstatamic-icon-button-fieldtypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaun%2Fstatamic-icon-button-fieldtypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Fstatamic-icon-button-fieldtypes/lists"}