A customizable lightbox gallery component for React.
You can install ethereal-lightbox-gallery
via npm:
npm install ethereal-lightbox-gallery
import React from 'react';
import LightboxGallery from 'ethereal-lightbox-gallery';
const images = [
{ src: 'image1.jpg', caption: 'Image 1' },
{ src: 'image2.jpg', caption: 'Image 2' },
{ src: 'image3.jpg', caption: 'Image 3' },
];
function App() {
return <LightboxGallery images={images} />;
}
export default App;
-
images
(required): An array of objects representing images to display in the gallery.-
src
(required): The URL of the image. -
caption
(optional): The caption for the image.
-