4.0.0 • Published 6 years ago

@matthamlin/react-lightbox v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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)