1.0.2 • Published 1 year ago
react-imagallery v1.0.2
react-imagallery
React Imagallery is react component for displaying image gallery.

Table of Contents
Getting started
Installation
Imagallery can be installed using npm (with React 16.0.0 or later):
npm i react-imagalleryExample
You can see basic example of displaying images here.
Features
- Fullscreen support
- Thumbnail navigation
- Swipe & drag gestures
- Slideshow support
- Responsive design
- Customization
Props
items: (ImgGalleryItem[], required)original: (string, required): image source URLthumbnail: (string, required): image thumbnail source URLoriginalAlt: (string): image altthumbnailAlt: (string): image thumbnail alt
selected: (number): selected item index to be displayedautoPlay: (boolean): whether slideshow should play automaticallyslideInterval: (number): interval between slides when slideshow is playedswipeDistance: (number): swipe distance needed for changing selected imageinfinite: (boolean): whether images should create infinite loopshowControls: (boolean): whether to show controlsshowThumbnails: (boolean): whether to show image thumbnailsshowArrows: (boolean): whether to show arrows for changing selected imageonClose: (() => void): called when close button is clicked
Links
- Author: Martan03
- GitHub repository: react-imagallery
- Author website: martan03.github.io