Skip to content
R

react-simple-image-viewer

Simple image viewer component for React

by spec7erFree

#1021in UI Libraries
0In stores

Description

react-simple-image-viewer is a simple image viewer component for React. You pass it an array of image URLs and an index for the image to sho…

Highlights

  • Image viewer for React with an array of URLs
  • Start on a chosen image with currentIndex
  • Custom close and arrow components
  • Keyboard shortcuts for navigation
  • Mouse wheel navigation that can be turned off

Ratings & Reviews

No ratings yet

Be the first to rate react-simple-image-viewer.

People also visit

R

react-images-viewer

Create an react-images-viewer component

UI Libraries
Launch
R

react-image-gallery

Responsive image gallery, carousel, image slider react component

UI Libraries
Launch
R

react-modal-image

Lightweight Lightbox React Component

UI Libraries
Launch
R

react-grid-gallery

Justified gallery component for React

UI Libraries
Launch
Y

yet-another-react-lightbox

Modern React lightbox component

UI Libraries
Launch
R

react-intense

A React component for viewing large images up close

UI Libraries
Launch

react-simple-image-viewer FAQ

What is react-simple-image-viewer?

A simple image viewer component for React that shows an array of images in a modal window.

How do I use it?

Pass an array of image URLs as src and a currentIndex for the image to show first, plus an onClose callback.

What keyboard shortcuts does it have?

Escape closes the viewer, the right arrow or l goes to the next image, and the left arrow or h goes to the previous one.

Can I customize the buttons?

Yes. You can supply your own close button and left and right arrow components.

Is there a demo?

The README links a demo on CodeSandbox.

What are the best react-simple-image-viewer alternatives?

Popular alternatives to react-simple-image-viewer include react-images-viewer, react-image-gallery and react-modal-image. See all react-simple-image-viewer alternatives

Developer Stuff

Badges