{"id":17377384,"url":"https://github.com/pradel/react-google-photo","last_synced_at":"2025-04-15T07:31:06.908Z","repository":{"id":42207109,"uuid":"110343741","full_name":"pradel/react-google-photo","owner":"pradel","description":"React lightbox component using the google photo style","archived":false,"fork":false,"pushed_at":"2023-01-25T07:47:27.000Z","size":3042,"stargazers_count":18,"open_issues_count":11,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T18:21:17.640Z","etag":null,"topics":["lightbox","react","responsive"],"latest_commit_sha":null,"homepage":"https://react-google-photo.leopradel.com/","language":"TypeScript","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/pradel.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":"2017-11-11T12:28:33.000Z","updated_at":"2023-05-11T03:42:24.000Z","dependencies_parsed_at":"2023-02-03T05:32:20.730Z","dependency_job_id":null,"html_url":"https://github.com/pradel/react-google-photo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Freact-google-photo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Freact-google-photo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Freact-google-photo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Freact-google-photo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pradel","download_url":"https://codeload.github.com/pradel/react-google-photo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824693,"owners_count":21167345,"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":["lightbox","react","responsive"],"created_at":"2024-10-16T05:05:50.954Z","updated_at":"2025-04-15T07:31:06.500Z","avatar_url":"https://github.com/pradel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-google-photo\n\n[![npm version](https://img.shields.io/npm/v/react-google-photo)](https://www.npmjs.com/package/react-google-photo)\n[![npm downloads](https://img.shields.io/npm/dm/react-google-photo)](https://www.npmjs.com/package/react-google-photo)\n[![license](https://img.shields.io/github/license/pradel/react-google-photo)](https://github.com/pradel/react-google-photo/blob/master/LICENSE)\n\nreact-google-photo is a responsive lightbox React Component for displaying photos that implements the google photo style.\n\n- Responsive.\n- Keyboard navigation.\n- Easily customizable via props.\n\n## Documentation\n\n📚 You can find the docs and live examples [here](https://react-google-photo.leopradel.com/).\n\n- [Getting started](https://react-google-photo.leopradel.com/)\n  - [Installation](https://react-google-photo.leopradel.com/#installation)\n  - [Usage](https://react-google-photo.leopradel.com/#usage)\n  - [Props](https://react-google-photo.leopradel.com/#props)\n  - [Licence](https://react-google-photo.leopradel.com/#license)\n\n## Installation\n\nWith npm:\n\n```\nnpm install react-google-photo --save\n```\n\nOr with yarn:\n\n```\nyarn add react-google-photo\n```\n\n## Usage\n\n```javascript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport 'react-google-photo/styles.css';\nimport GooglePhoto from 'react-google-photo';\n\nconst App = () =\u003e {\n  const [open, setOpen] = React.useState(false);\n\nconst images = [\n    {\n      src:\n        'https://images.unsplash.com/photo-1509420316987-d27b02f81864?dpr=1\u0026auto=format\u0026fit=crop\u0026w=1500\u0026q=80\u0026cs=tinysrgb\u0026ixid=dW5zcGxhc2guY29tOzs7Ozs%3D',\n      width: 1500,\n      height: 1000,\n    },\n    ...\n  ];\n\n  return (\n    \u003cdiv\u003e\n      \u003cbutton onClick={this.handleOpen}\u003eOpen\u003c/button\u003e\n      \u003cGooglePhoto\n        open={open}\n        src={images}\n        onClose={() =\u003e setOpen(false)}\n      /\u003e\n    \u003c/div\u003e\n  );\n};\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById('app'));\n```\n\n## Props\n\nCheck the documentation: https://react-google-photo.leopradel.com/#props.\n\n## License\n\nMIT © [Léo Pradel](https://www.leopradel.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradel%2Freact-google-photo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradel%2Freact-google-photo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradel%2Freact-google-photo/lists"}