0.7.7 • Published 2 years ago

react-pictures-viewer v0.7.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
0.7.6

2 years ago

0.7.7

2 years ago

0.7.5

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago