React Images
A simple, responsive Lightbox component for ReactJS to display an array of images.
Examples
Getting Started
1. Install using npm:
npm install react-images --save
2. Example usage with JSX:
<Lightbox
images={[
{ src: '../images/photo-1.jpg' },
{ src: '../images/photo-2.jpg' }
]}
isOpen={this.state.lightboxIsOpen}
onClickPrev={this.gotoPrevLightboxImage}
onClickNext={this.gotoNextLightboxImage}
onClose={this.closeLightbox}
/>
License
React Images is free to use for personal and commercial projects under the MIT license.
Attribution is not required, but greatly appreciated. It does not have to be user-facing and can remain within the code.
Help
Have a question?
Follow the quick start guide on GitHub to get up and running quickly. Please do not use Github Issues to report personal support requests.
Found a bug?
If you find a bug, please read the Contribution Guildelines before you report the issue.