Skip to content

πŸŒ„ A modern fork of a simple legacy lightbox package for displaying images with zoom/rotation

License

Notifications You must be signed in to change notification settings

isla-nicole-may/React-Lightbox

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

408 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

πŸ”— Useful Links (Work in progress)

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

πŸ–ΌοΈ 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

About

πŸŒ„ A modern fork of a simple legacy lightbox package for displaying images with zoom/rotation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.5%
  • Other 0.5%