Plugins

Yet Another React Lightbox allows you to add optional features based on your requirements via plugins.

The following plugins come bundled in the package:

  • Captions - adds support for slide title and description
  • Fullscreen - adds support for fullscreen mode
  • Inline - adds support for inline rendering mode
  • Slideshow - adds slideshow autoplay feature
  • Thumbnails - adds thumbnails track
  • Video - adds support for video slides
  • Zoom - adds image zoom feature

Each plugin can be imported either from the yet-another-react-lightbox/plugins module entrypoint:

// named export
import { Fullscreen } from "yet-another-react-lightbox/plugins";

or from the plugin-specific entrypoint (this option is preferred in TypeScript projects):

// named export
import { Fullscreen } from "yet-another-react-lightbox/plugins/fullscreen";
// default export
import Fullscreen from "yet-another-react-lightbox/plugins/fullscreen";

Please refer to the individual plugin's documentation for additional details.

CodeSandbox

Edit on CodeSandbox