{"id":25676402,"url":"https://github.com/frzkn/use-images-loaded","last_synced_at":"2025-04-23T13:34:38.584Z","repository":{"id":42771706,"uuid":"276087168","full_name":"frzkn/use-images-loaded","owner":"frzkn","description":"🖼️ Returns true once all the images inside a container are loaded","archived":false,"fork":false,"pushed_at":"2023-07-14T16:22:28.000Z","size":1276,"stargazers_count":85,"open_issues_count":13,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T05:47:49.950Z","etag":null,"topics":["custom","hooks","images","load","onload","react"],"latest_commit_sha":null,"homepage":"https://use-images-loaded.netlify.app/","language":"JavaScript","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/frzkn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-30T12:04:45.000Z","updated_at":"2023-09-14T17:28:34.000Z","dependencies_parsed_at":"2023-02-05T21:00:44.577Z","dependency_job_id":null,"html_url":"https://github.com/frzkn/use-images-loaded","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/frzkn%2Fuse-images-loaded","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frzkn%2Fuse-images-loaded/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frzkn%2Fuse-images-loaded/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frzkn%2Fuse-images-loaded/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frzkn","download_url":"https://codeload.github.com/frzkn/use-images-loaded/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240493305,"owners_count":19810260,"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":["custom","hooks","images","load","onload","react"],"created_at":"2025-02-24T14:26:16.600Z","updated_at":"2025-02-24T14:26:17.131Z","avatar_url":"https://github.com/frzkn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🖼️ useImagesLoaded\n\nCustom react hook which returns true once all the images inside a container are loaded.\n\nCheck out a working demo [here](https://use-images-loaded.netlify.app)\n\n### 🚀 Getting Started\n\n#### Installation\n\n```\nyarn add use-images-loaded\n```\n\n#### Usage\n\nDisplaying a loading indicator while images are loading in a container\n\n```\nimport useImageLoaded from 'use-images-loaded'\n\nconst ImageContainer = () =\u003e {\n  const [ref, loaded] = useImagesLoaded()\n\n  return (\n    \u003cdiv ref={ref}\u003e\n    \u003cp\u003e Status: {loaded ? 'Loaded': 'Loading'} \u003c/p\u003e\n    \u003cimg src=\"https://unsplash.it/200/200\" alt=\"image\"/\u003e\n    \u003cimg src=\"https://unsplash.it/200/200\" alt=\"image\"/\u003e\n    \u003cimg src=\"https://unsplash.it/200/200\" alt=\"image\"/\u003e\n    \u003c/div\u003e\n  )\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrzkn%2Fuse-images-loaded","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrzkn%2Fuse-images-loaded","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrzkn%2Fuse-images-loaded/lists"}