{"id":20759838,"url":"https://github.com/owsas/react-image-lightbox-fit","last_synced_at":"2025-08-10T11:04:38.194Z","repository":{"id":91075842,"uuid":"111326787","full_name":"owsas/react-image-lightbox-fit","owner":"owsas","description":"Lightbox with support for several images in ReactJS","archived":false,"fork":false,"pushed_at":"2018-04-10T19:51:38.000Z","size":214,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T22:53:54.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/owsas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-19T19:49:27.000Z","updated_at":"2024-02-08T04:49:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"78a018a3-62a0-43be-877d-9b8ef9d6ec6f","html_url":"https://github.com/owsas/react-image-lightbox-fit","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/owsas/react-image-lightbox-fit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Freact-image-lightbox-fit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Freact-image-lightbox-fit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Freact-image-lightbox-fit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Freact-image-lightbox-fit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owsas","download_url":"https://codeload.github.com/owsas/react-image-lightbox-fit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Freact-image-lightbox-fit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269713883,"owners_count":24463244,"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-08-10T02:00:08.965Z","response_time":71,"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-11-17T10:08:29.514Z","updated_at":"2025-08-10T11:04:38.185Z","avatar_url":"https://github.com/owsas.png","language":"JavaScript","funding_links":["https://patreon.com/owsas"],"categories":[],"sub_categories":[],"readme":"# React Image Lightbox Fit\n\n## Example\n\n```jsx\nimport React from 'react';\nimport { render } from 'react-dom';\nimport LightBoxFit from 'react-image-lightbox-fit';\n\nconst App = () =\u003e (\n  \u003cdiv\u003e\n    \u003cdiv className=\"visible-xs visible-sm\"\u003e\n      \u003cLightBoxFit images={['https://dummyimage.com/300x500']} height={400} /\u003e\n    \u003c/div\u003e\n    \u003cdiv className=\"container\"\u003e\n\n      \u003cdiv className=\"row\"\u003e\n        \u003cdiv className=\"col-md-9 hidden-xs hidden-sm\"\u003e\n          \u003cLightBoxFit \n            images={[\n              'https://dummyimage.com/300x500',\n              'https://dummyimage.com/400x300',\n              ]} \n            height={400} \n          /\u003e\n        \u003c/div\u003e\n        \u003cdiv className=\"col-md-3\"\u003e\n          \u003ch1\u003eHello world\u003c/h1\u003e\n          \u003cp\u003eThis is a test paragraph\u003c/p\u003e\n        \u003c/div\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\n);\n\nrender(\u003cApp /\u003e, document.getElementById('root'));\n```\n\n### Props\n```js\nReactImageLightboxFit.propTypes = {\n  height: PropTypes.number.isRequired,\n  images: PropTypes.arrayOf(PropTypes.string).isRequired,\n};\n```\n\n## Result \n### Desktop\n![Desktop View](repo/desktop.png)\n\n### Mobile\n![Mobile View](repo/mobile.png)\n\n\n## Dev Mode\n1. Clone this repository\n1. Run `yarn install` (Usage of Yarn is recommended)\n1. Edit the `src/index.jsx` file and then run `npm run dev`.  \n1. This will start the `webpack-dev-server` \n1. Then open your browser at `localhost:3100`\n1. The browser will be updated everytime you change the code at `src/index.jsx`\n\n## Dev Features\n* Linting with eslint\n* Linting code style: Airbnb\n* Testing with `jest@^21.2.1` and `enzyme@^3.1.1`\n* Uses `babel` for JS transpiling\n* Uses `webpack` for building the code\n\n## Folder structure\n* `/src`: The module code\n* `/test`: The tests for the `src` components\n* `/build`: The target compilation directory\n\n## Credits\nJuan Camilo Guarín Peñaranda  \n[Otherwise SAS](https://github.com/owsas)  \nCali, Colombia, 2017\n\n## License\nMIT\n\n## Support us on Patreon\n[![patreon](./repo/patreon.png)](https://patreon.com/owsas)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowsas%2Freact-image-lightbox-fit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowsas%2Freact-image-lightbox-fit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowsas%2Freact-image-lightbox-fit/lists"}