Skip to content

extonec/react-lightbox-component

 
 

Repository files navigation

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

var Lightbox = require('react-lightbox-component').Lightbox;

var LightboxView = React.createClass({
  render: function() {
    var images = [
      {
        src: 'some image url',
        title: 'image title',
        description: 'image description'
      }
    ];
    return (
      <Lightbox images={images} />
    );
  },
});

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.9%
  • HTML 10.8%
  • CSS 9.3%