
Description
react-image-gallery is a responsive, customisable image gallery and carousel component for React. It supports touch swiping on mobile, thumbnails in a choice of positions, fullscreen viewing in the browser or with CSS, theming through CSS custom properties, keyboard navigation with arrow keys and escape, right-to-left language support, and vertical sliding. Slides can be images, videos, iframes or any custom content. You pass the gallery an items array, where each item has an original image, a thumbnail and optional fields for alt text, titles, descriptions, sizes and loading behaviour. Props control whether the carousel loops, whether navigation, thumbnails and the fullscreen and play buttons are shown, where the thumbnails sit, and whether the slides use translate3D or translate. Custom rendering is available through renderItem and renderThumbInner. The README lists the props and the functions the component exposes, and it has a live demo and example code in the repository. It suits React developers who need a gallery or product image slider.…
Highlights
- Touch swiping and keyboard navigation
- Thumbnails in top, right, bottom or left positions
- Fullscreen in the browser or with CSS
- Custom slides for videos and iframes
Ratings & Reviews
No ratings yet
Be the first to rate react-image-gallery.
People also visit
react-image-gallery FAQ
What does react-image-gallery do?
It shows a responsive image gallery or carousel in a React app, with thumbnails, fullscreen and touch support.
How do I give it images?
Pass an items array, where each item has an original image URL and a thumbnail URL, plus optional alt text, titles and sizes.
Can slides be videos?
Yes. The README says custom slides can render videos, iframes or any custom content through renderItem.
Does it support right-to-left languages?
Yes. The isRTL prop and the RTL support listed in the README handle right-to-left layouts.
Is there a demo?
Yes. The README links a live demo and points to example/App.jsx for more examples.
What are the best react-image-gallery alternatives?
Popular alternatives to react-image-gallery include react-grid-gallery, react-photo-album and react-photo-gallery. See all react-image-gallery alternatives



















