{"id":28753188,"url":"https://github.com/dioxus-community/dioxus-resize-observer","last_synced_at":"2025-06-17T00:38:59.688Z","repository":{"id":197734391,"uuid":"699079908","full_name":"dioxus-community/dioxus-resize-observer","owner":"dioxus-community","description":"Resize observer hooks for Dioxus 🧬","archived":false,"fork":false,"pushed_at":"2024-12-15T09:40:46.000Z","size":86,"stargazers_count":10,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-10T08:29:42.060Z","etag":null,"topics":["dioxus"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/dioxus-community.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-01T21:14:29.000Z","updated_at":"2025-05-10T13:52:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f690f4d-882b-4cd7-bce2-c697e276abcb","html_url":"https://github.com/dioxus-community/dioxus-resize-observer","commit_stats":null,"previous_names":["matthunz/dioxus-hooky","dioxus-community/dioxus-resize-observer","matthunz/dioxus-resize-observer"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/dioxus-community/dioxus-resize-observer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dioxus-community%2Fdioxus-resize-observer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dioxus-community%2Fdioxus-resize-observer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dioxus-community%2Fdioxus-resize-observer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dioxus-community%2Fdioxus-resize-observer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dioxus-community","download_url":"https://codeload.github.com/dioxus-community/dioxus-resize-observer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dioxus-community%2Fdioxus-resize-observer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260268635,"owners_count":22983601,"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":["dioxus"],"created_at":"2025-06-17T00:38:58.652Z","updated_at":"2025-06-17T00:38:59.654Z","avatar_url":"https://github.com/dioxus-community.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dioxus-resize-observer\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/dioxus-community/dioxus-resize-observer#license)\n[![Crates.io](https://img.shields.io/crates/v/dioxus-resize-observer.svg)](https://crates.io/crates/dioxus-resize-observer)\n[![Docs](https://docs.rs/dioxus-resize-observer/badge.svg)](https://docs.rs/cdk-builder/latest/dioxus-resize-observer/)\n[![CI](https://github.com/dioxus-community/dioxus-resize-observer/workflows/CI/badge.svg)](https://github.com/dioxus-community/dioxus-resize-observer/actions)\n[![Discord Server](https://img.shields.io/discord/899851952891002890.svg?logo=discord\u0026style=flat-square)](https://discord.gg/sKJSVNSCDJ)\n\nResize observer hooks for [Dioxus 🧬](https://dioxuslabs.com/).\n\n## Example\n```rust\nuse dioxus::prelude::*;\nuse dioxus_resize_observer::use_size;\nuse dioxus_use_mounted::use_mounted;\n\nfn app() -\u003e Element {\n    let mounted = use_mounted();\n    let (width, height) = use_size(mounted);\n\n    rsx!(div {\n      onmounted: move |event| mounted.onmounted(event),\n      \"Size: {width} x {height}\"\n    })\n}\n```\n\n## Support\n- Web renderer (WASM)\n  - **0.1.0 - Dioxus v0.4**\n  - **0.2.0 - Dioxus v0.5**\n  - **0.3.0 - Dioxus v0.6**\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdioxus-community%2Fdioxus-resize-observer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdioxus-community%2Fdioxus-resize-observer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdioxus-community%2Fdioxus-resize-observer/lists"}