0.1.6 • Published 5 months ago

react-zoom-image-component v0.1.6

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

React Zoom Image Component

A React component for zooming into images.

npm install react-zoom-image-component

Import the Zoom component in your React application and use it to enable zoom functionality for your images.

import {Zoom} from 'react-zoom-image-component'

<Zoom

    imgId="myimage"
    resultId="myresult"
    imgWidth={300}
    imgHeight={240}
    imgUrl="https://example.com/path/to/your-image.jpg"
  />

Props imgId: Identifier for the image element. resultId: Identifier for the result element. imgWidth: Width of the image. imgHeight: Height of the image. imgUrl: URL or path to the image. Can be a remote URL or a local path.