Cartzilla component

Lightbox (Gallery)

JavaScript-based lightbox component designed to display various types of media.

The Lightbox component is a React wrapper for the Glightbox plugin.

Available props:
  • gallery={string} - The identifier for the lightbox gallery. This value is used to group items in the same gallery.
  • href={string} - The URL of the image or video to be displayed in the lightbox.
  • title={string} - An optional title for the lightbox slide. This will appear as the caption.
  • description={string} - An optional description for the lightbox slide. This will appear under the title as additional text.
  • fullscreen={boolean} - Determines if the lightbox should display the slide in fullscreen mode. Default is false.
  • children - The content to render as the clickable element that opens the lightbox.
Top