{"id":21518725,"url":"https://github.com/halo-lab/use-resizing","last_synced_at":"2025-04-09T22:06:51.939Z","repository":{"id":42900581,"uuid":"252414414","full_name":"Halo-Lab/use-resizing","owner":"Halo-Lab","description":"React Hook that triggers on window resize","archived":false,"fork":false,"pushed_at":"2023-03-04T09:52:17.000Z","size":464,"stargazers_count":16,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T22:06:46.495Z","etag":null,"topics":["hooks","react","reactjs","resize"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Halo-Lab.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}},"created_at":"2020-04-02T09:43:10.000Z","updated_at":"2024-08-13T17:06:55.000Z","dependencies_parsed_at":"2023-02-06T12:00:46.353Z","dependency_job_id":null,"html_url":"https://github.com/Halo-Lab/use-resizing","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/Halo-Lab%2Fuse-resizing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Halo-Lab%2Fuse-resizing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Halo-Lab%2Fuse-resizing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Halo-Lab%2Fuse-resizing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Halo-Lab","download_url":"https://codeload.github.com/Halo-Lab/use-resizing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119296,"owners_count":21050755,"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":["hooks","react","reactjs","resize"],"created_at":"2024-11-24T00:53:44.682Z","updated_at":"2025-04-09T22:06:51.911Z","avatar_url":"https://github.com/Halo-Lab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003euseResizing\u003c/h1\u003e\n\nReact Hook that triggers on window resize\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cb\u003eExample\u003c/b\u003e\n\u003cbr/\u003e\nIn your React component:\n\u003cbr/\u003e\n\n```\nimport useResize from \"use-resizing\"\n\nfunction SizeInfo() {\n  const screenSize = useResize()\n\n  return \u003cdiv\u003esize = ({ screenSize.width }, { screenSize.height })\u003c/div\u003e\n}\n```\n\n\u003cb\u003eSettings:\u003c/b\u003e\n\u003cbr/\u003e\ndebounceTime - number (default 100ms)\n\n```\n...\nconst screenSize = useResize({debounceTime:200})\n```\n\n## Word from author\n\nHave fun! ✌️\n\n\u003ca href=\"https://www.halo-lab.com/?utm_source=github\"\u003e\n  \u003cimg src=\"https://dgestran.sirv.com/Images/supported-by-halolab.png\" alt=\"Supported by Halo lab\" height=\"60\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalo-lab%2Fuse-resizing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalo-lab%2Fuse-resizing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalo-lab%2Fuse-resizing/lists"}