react-lightbox-component

An image lightbox component for ReactJS. A demo can be viewed here

Usage no npm install needed!

<script type="module">
  import reactLightboxComponent from 'https://cdn.skypack.dev/react-lightbox-component';
</script>

README

React lightbox component

An image lightbox component for ReactJS. A demo can be viewed here

Features:

  • Zoom control
  • Rotate control
  • Smooth animations
  • Customizable thumbnails

Demo

Demo

Installation

npm install react-lightbox-component

Basic Usage

import Lightbox from 'react-lightbox-component';

const App = () => (
  <div>
    <Lightbox images={
      [
        {
          src: 'some image url',
          title: 'image title',
          description: 'image description'
        }
      ]
    }/>
  </div>
);

License

MIT