Compared to the legacy package, this fork is powered by:
- β¨ The latest version of React
- π No JavaScript, all TypeScript
- π¨ Easy styling with Tailwind CSS
- π¦ Better package management with PNPM
- πΌοΈ Modern Display-PiP compatibility
| Resource | Description |
|---|---|
| π¦ NPM Package | Install and view package details |
| π§ͺ Test Locally | How to test and run locally |
| π€ Contributing | How to contribute |
| π Basic Usage | Understanding the demo and basic usage |
npm install react-images-extended-2import { Lightbox, IImage } from 'react-images-extended-2';
import 'react-images-extended-2/dist/styles.css';
const images: IImage[] = [
{ src: 'image1.jpg', caption: 'Image 1' },
{ src: 'image2.jpg', caption: 'Image 2' },
];
function App() {
return (
<Lightbox
images={images}
onClose={() => setIsOpen(false)}
showThumbnails={true}
/>
);
}πΌοΈ Image Management
- Zoom, rotate, and drag functionality
- Thumbnail navigation
- Keyboard shortcuts
- Touch/gesture support
π― Modern Features
- Picture-in-Picture mode
- Full TypeScript support
- Tailwind CSS styling
- Responsive design
Made with β€οΈ by Isla

