React Lightbox
This is a simple Lightbox component for React (v16 and above).
To use in your project:
import Lightbox from '@matthamlin/react-lightbox';
require('@matthamlin/react-lightbox/src/Lightbox.css');
...
render(
<Lightbox
images={
[
{
img: 'path/to/image.jpg',
caption: 'Image Caption'
},
{
img: 'path/to/another_image.jpg',
caption: 'Another Image Caption'
}
]
}
/>,
root
);
Requirements:
- React
- CSSNext (color function, this can be changed out to whatever color you want however)