{"id":23705334,"url":"https://github.com/yewstack/yew-autoprops","last_synced_at":"2026-03-16T22:00:32.604Z","repository":{"id":168018177,"uuid":"643640862","full_name":"yewstack/yew-autoprops","owner":"yewstack","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-04T15:37:26.000Z","size":24,"stargazers_count":10,"open_issues_count":4,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-08-15T18:25:27.735Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yewstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-05-21T19:51:05.000Z","updated_at":"2025-05-03T15:48:10.000Z","dependencies_parsed_at":"2023-11-18T09:24:16.215Z","dependency_job_id":"7afccc53-c8e0-4e20-9a62-a50f16daf4a5","html_url":"https://github.com/yewstack/yew-autoprops","commit_stats":null,"previous_names":["valyagolev/yew-autoprops","yewstack/yew-autoprops"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yewstack/yew-autoprops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Fyew-autoprops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Fyew-autoprops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Fyew-autoprops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Fyew-autoprops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yewstack","download_url":"https://codeload.github.com/yewstack/yew-autoprops/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Fyew-autoprops/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273430350,"owners_count":25104479,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"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":"2024-12-30T14:35:53.798Z","updated_at":"2026-03-16T22:00:32.599Z","avatar_url":"https://github.com/yewstack.png","language":"Rust","readme":"# yew-autoprops\n\n\u003ca href=\"https://crates.io/crates/yew-autoprops\"\u003e\u003cimg alt=\"Crate Info\" src=\"https://img.shields.io/crates/v/yew-autoprops.svg\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://docs.rs/yew-autoprops/\"\u003e\u003cimg alt=\"API Docs\" src=\"https://img.shields.io/docsrs/yew-autoprops\"/\u003e\u003c/a\u003e\n\nproc-macro to automatically derive Properties structs from args for Yew components\n\nNo more extra one-off Props structs!\n\n# Examples\n\n```rust\nuse yew_autoprops::autoprops;\nuse yew::prelude::*;\n\n#[autoprops]\n#[component]\nfn CoolComponent(#[prop_or_default] hidden: bool, smth: \u0026AttrValue) -\u003e Html {\n    html! {\n        \u003cdiv class={classes!(hidden.then_some(\"hidden\"))}\u003e\n            \u003cp\u003e{ smth }\u003c/p\u003e\n        \u003c/div\u003e\n    }\n}\n```\n\n```rust\nuse yew_autoprops::autoprops;\nuse yew::prelude::*;\n\n#[autoprops(CoolComponentProps)]\n#[component(CoolComponent)]\nfn cool_component(#[prop_or_default] hidden: bool, smth: \u0026AttrValue) -\u003e Html {\n    html! {\n        \u003cdiv class={classes!(hidden.then_some(\"hidden\"))}\u003e\n            \u003cp\u003e{ smth }\u003c/p\u003e\n        \u003c/div\u003e\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyewstack%2Fyew-autoprops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyewstack%2Fyew-autoprops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyewstack%2Fyew-autoprops/lists"}