Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-images-extended-2-stable

ryan-n-may538MIT1.1.6TypeScript support: included

A simple, responsive lightbox component for displaying an array of images with React.js with extended features ((stable version))

react, react-component, react-images, react-images-extended, react-lightbox, react-carousel, react-gallery, react images, react lightbox, react carousel, react gallery, lightbox, carousel, gallery, zoom, rotation, inverting, flipping, PiP, picture-in-picture, save

readme

React Images Extended

NPM Package TypeScript React

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

📸 Demo

Core Functionality

Demonstration of core functionality

Picture-in-Picture Behavior

Demonstration of PiP behaviour
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

🚀 Quick Start

npm install react-images-extended-2
import { 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}
    />
  );
}

✨ Features

<summary>🖼️ Image Management</summary>
  • Zoom, rotate, and drag functionality
  • Thumbnail navigation
  • Keyboard shortcuts
  • Touch/gesture support
<summary>🎯 Modern Features</summary>
  • Picture-in-Picture mode
  • Full TypeScript support
  • Tailwind CSS styling
  • Responsive design

Made with ❤️ by Isla