1.1.2 • Published 12 months ago

react-fullscreen-image-viewer v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

React Fullscreen Image Viewer

A React component for viewing images in fullscreen with zoom and navigation capabilities.

Installation

npm install react-fullscreen-image-viewer

Usage

import React, { useState } from 'react';
import ImageViewer from 'react-fullscreen-image-viewer';

const MyComponent = () => {
  const images = [
    'https://example.com/image1.jpg',
    'https://example.com/image2.jpg',
    'https://example.com/image3.jpg',
  ];

  return (
    <div>
        <ImageViewer images={images} />
    </div>
  );
};

Props

PropTypeDefaultDescription
imagesstring[]RequiredAn array of image URLs to be displayed in the viewer
initialIndexnumber0The index of the image to display first
allowDownloadbooleanfalseWhether to allow image downloads
thumbnailWidthnumber100Width of thumbnail images in pixels
thumbnailHeightnumber100Height of thumbnail images in pixels
1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago