react-responsive-image-grid

1.1.0 • Public • Published

React Image Grid

Build Status Coverage Status

React Image Grid is an image grid component based on Google Photos. It will display a grid of photos, with customizeable row height and margins. The grid will adapt to fit it's parent container, and will resize rows according to screen size.

Image of react-image-grid

New! Image lightbox

You can now click on a photo and view your grid as a gallery. Navigate using the arrow keys or the on screen arrows. Currently does not support swipe gestures for mobile.

Gif of lightbox

Installation

Install via npm or yarn:

yarn add react-responsive-image-grid

or

npm install react-responsive-image-grid

Usage

See the src/demo for usage. You'll need the direct URLs to your photos, as well as the height and width of your images in pixels.

Project Roadmap

  • Performance
    • Implement lazy loading of photos (only in viewport images loaded)
    • Support multiple image sizes for different devices
    • Increase initial scroll and render speed
  • Features
    • Drag and drop images
    • Make images selectable

Package Sidebar

Install

npm i react-responsive-image-grid

Weekly Downloads

6

Version

1.1.0

License

MIT

Unpacked Size

7.51 kB

Total Files

4

Last publish

Collaborators

  • austingomez