Description
React Photo Album is a responsive photo gallery component for React that arranges images in rows, columns or masonry layouts. It is a re-engineered successor to react-photo-gallery, rebuilt from the ground up. The component supports server-side rendering, producing markup that looks right on the client even before hydration, and it handles responsive images with automatic resolution switching. The rows layout fills the container by arranging photos into rows of similar height, with each row's height as close as possible to a target row height, using dynamic programming to choose the row breaks. The package includes built-in TypeScript types, supports custom data attributes, and is designed to handle large photo albums. It requires React 18 or newer, Node 18 or newer and a modern ESM-compatible bundler. Documentation and examples are on the project's website, and the changelog is on the GitHub releases page.…
Highlights
- Rows, columns and masonry layouts
- Responsive images with resolution switching
- Server-side rendering support
- Built-in TypeScript types
- Works with React 18 and newer
Ratings & Reviews
No ratings yet
Be the first to rate react-photo-album.
People also visit

react-image-gallery
Responsive image gallery, carousel, image slider react component
react-photo-album FAQ
What is React Photo Album?
A responsive photo gallery component for React with rows, columns and masonry layouts.
What do I need to use it?
React 18 or newer, Node 18 or newer, and a modern ESM-compatible bundler.
Does it work with server-side rendering?
Yes. The project says the server-rendered markup looks the same on the client before hydration.
Where are the docs?
Documentation and examples are on react-photo-album.com, and the changelog is on the GitHub releases page.
What are the best react-photo-album alternatives?
Popular alternatives to react-photo-album include react-photo-gallery, react-grid-gallery and react-image-gallery. See all react-photo-album alternatives



















