{"id":29003614,"url":"https://github.com/togglebyte/anathema-extras","last_synced_at":"2026-04-09T04:31:29.334Z","repository":{"id":300361239,"uuid":"1003894368","full_name":"togglebyte/anathema-extras","owner":"togglebyte","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-21T09:27:20.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-28T04:29:39.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/togglebyte.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":"2025-06-17T19:56:59.000Z","updated_at":"2025-06-21T09:27:23.000Z","dependencies_parsed_at":"2025-06-21T09:15:41.265Z","dependency_job_id":"ec792ba7-dc23-46f1-8894-ada2ff5a0658","html_url":"https://github.com/togglebyte/anathema-extras","commit_stats":null,"previous_names":["togglebyte/anathema-extras"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/togglebyte/anathema-extras","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togglebyte%2Fanathema-extras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togglebyte%2Fanathema-extras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togglebyte%2Fanathema-extras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togglebyte%2Fanathema-extras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/togglebyte","download_url":"https://codeload.github.com/togglebyte/anathema-extras/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togglebyte%2Fanathema-extras/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31586403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":"2025-06-25T10:08:16.772Z","updated_at":"2026-04-09T04:31:29.317Z","avatar_url":"https://github.com/togglebyte.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anathema extras\n\nThis crate contains third party components for Anathema.\n\n# Input\n\nA single line input field.\n\n```rust\nbuilder\n    .default::\u003cInput\u003e(\"input\", Input::template())\n    .unwrap();\n\n```\n\nThe input component can be registered as a prototype as well. \n\n```rust\nbuilder\n    .prototype(\"input\", Input::template(), Input::new, InputState::new)\n    .unwrap();\n\n```\n\n## Supported events:\n\nThe following events are provided:\n\n###  `on_enter` \n\nThe enter key was pressed.\nThis event publishes `anathema_extras::Text`, which implements `Deref\u003cstr\u003e`.\n\n### `on_change` \n\nA change was made to the text (insert or remove).\nThis event publishes `anathema_extras::InputChange`.\n\n### `on_focus` \n\nThe input component gained focus.\nThis event publishes `()`.\n\n### `on_blur` \n\nThe input component lost focus.\nThis event publishes `()`.\n\n## Attributes\n\n### `clear_on_enter`\n\nIf the desired outcome is to retain the text when the enter key is pressed set\nthis attribute to false.\n\n```\n@input [clear_on_enter: false]\n```\n\n## Example\n\n```\nvstack\n    @input (on_enter-\u003eupdate_label_a)\n    @input (on_enter-\u003eupdate_label_b)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftogglebyte%2Fanathema-extras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftogglebyte%2Fanathema-extras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftogglebyte%2Fanathema-extras/lists"}