{"id":18852142,"url":"https://github.com/infeng/react-lazyload-img","last_synced_at":"2025-07-14T15:07:29.321Z","repository":{"id":57333844,"uuid":"70573075","full_name":"infeng/react-lazyload-img","owner":"infeng","description":"lazyload image component","archived":false,"fork":false,"pushed_at":"2016-10-17T02:09:28.000Z","size":12,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T08:53:38.423Z","etag":null,"topics":["image","lazyload","react"],"latest_commit_sha":null,"homepage":null,"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/infeng.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":"2016-10-11T08:34:18.000Z","updated_at":"2019-07-01T06:31:18.000Z","dependencies_parsed_at":"2022-08-24T21:40:59.812Z","dependency_job_id":null,"html_url":"https://github.com/infeng/react-lazyload-img","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/infeng/react-lazyload-img","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infeng%2Freact-lazyload-img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infeng%2Freact-lazyload-img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infeng%2Freact-lazyload-img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infeng%2Freact-lazyload-img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infeng","download_url":"https://codeload.github.com/infeng/react-lazyload-img/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infeng%2Freact-lazyload-img/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265311871,"owners_count":23745161,"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":["image","lazyload","react"],"created_at":"2024-11-08T03:38:18.196Z","updated_at":"2025-07-14T15:07:29.291Z","avatar_url":"https://github.com/infeng.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-lazyload-img\n\nlazyload image component\n\n## Installation\n\n```bash\nnpm install react-lazyload-img --save\n```\n\n## Usage\n\n```javascript\nimport * as React from 'react';\nimport LazyLoadImg from 'react-lazyload-img';\n\nclass App extends React.Component\u003cany, any\u003e {\n  render() {\n    \u003cdiv\u003e\n      \u003cLazyLoadImg\n      src=\"\"\n      placeholder=\"\"\n      /\u003e\n    \u003c/div\u003e\n  }\n}\n```\n\n## Props\n\n| props       | type         | default | description                 | required |\n|-------------|--------------|---------|-----------------------------|----------|\n| src         | string       |         | img source                  | false |\n| placeholder | string       |         | when img unload, img`s source is placeholder | false |\n| offset      | {{ min?: number, max?: number }} | { min: 0, max: 0 } | viewport offset | false |\n| img tag attributes | any   | - | img tag attributes | false |\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfeng%2Freact-lazyload-img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfeng%2Freact-lazyload-img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfeng%2Freact-lazyload-img/lists"}