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:

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