New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-pictures-viewer

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pictures-viewer

A react component for viewing pictures

latest
Source
npmnpm
Version
0.7.7
Version published
Maintainers
1
Created
Source

React Pictures Viewer

A simple react.js library for viewing pictures ⚡️

Uzoma Medium Gif

Installation

Install with npm

  npm install react-pictures-viewer

Install with yarn

  yarn add react-pictures-viewer

Usage/Examples

import PicturesViewer from "react-pictures-viewer";

const data = [
  {
    src: "./large-image.png",
    smallSrc:
      "small-image-png",
  },
]

 <PicturesViewer
    initialImageIndex={0}
    isZoomOnMouseMoveEnabled={false}
    data={data}
/>

Passing a children prop:

<PicturesViewer
    initialImageIndex={0}
    data={data}
>
<div style={{
    position: "absolute",
    top: 10,
    left: 10
}}>Child</div>
</PicturesViewer>

Run with vite.js

  git clone https://github.com/aldovandus/react-pictures-viewer
  cd react-pictures-viewer
  yarn install
  yarn dev

Keywords

react

FAQs

Package last updated on 28 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts