Description
Yet Another React Lightbox is a modern React lightbox component that aims to be performant, easy to use, customizable and extendable. It works with React 19, 18, 17 and 16.8.0 or later, comes with built-in TypeScript types, and is compatible with RTL layouts. It supports keyboard, mouse, touchpad and touchscreen navigation. Preloading means it never shows a partly downloaded image, and it preloads only a limited number of images to keep performance and the user experience good. Responsive images are supported out of the box with automatic resolution switching, so the browser picks the file that fits its viewport from the srcset and sizes attributes. The README recommends providing several resolutions for each image, rather than only a thumbnail and a full-size file, and it explains how to use third-party image components such as Next.js Image or Gatsby Image through a custom render function. Video slides and image zoom are optional plugins, so rarely used features are not bundled. You can customize any UI element or add your own custom slides. Documentation, examples and a changelog are on the project's website and in GitHub releases. The project is open source on GitHub under igordanchenko.…
Highlights
- Works with React 16.8 through React 19
- Keyboard, mouse, touchpad and touchscreen navigation
- Preloading that never shows partial images
- Responsive images with automatic resolution switching
- Video and zoom as optional plugins
- Built-in TypeScript types
Ratings & Reviews
No ratings yet
Be the first to rate yet-another-react-lightbox.
People also visit

react-image-gallery
Responsive image gallery, carousel, image slider react component
yet-another-react-lightbox FAQ
What is Yet Another React Lightbox?
A React lightbox component that is performant, easy to use and customizable, with optional plugins for video and zoom.
Which React versions does it support?
React 19, 18, 17 and 16.8.0 or later, according to the README.
How does it pick image sizes?
It populates srcset and sizes attributes, so the browser chooses the image that fits its viewport, if you supply several resolutions.
Can I use Next.js Image or Gatsby Image?
Yes. The README explains how to integrate third-party image components through a custom render function.
Where are the docs?
On the project's documentation and examples site, with a changelog in GitHub releases.
What are the best yet-another-react-lightbox alternatives?
Popular alternatives to yet-another-react-lightbox include react-modal-image, react-image-gallery and react-photo-album. See all yet-another-react-lightbox alternatives





















