0.1.7 • Published 9 months ago
react-img-zoom-gdn v0.1.7
react-img-zoom-gdn
This package heavily utilizes from the react-img-zoom by LeoNero.
Installation
npm install react-img-zoom-gdn
Basic usage
The component has only four required props: the link to the image, the zoom scale, the width and height (in pixels).
import Zoom from "react-img-zoom-gdn";
<Zoom img="link-to-img" zoomScale={3} width={600} height={600} />;
You can refer to the docs which was created by "LeoNero" for more information and a live demo!
To do
- Accessibility improvements
- Mobile support
- Improve tests (more cases, snapshot tests, etc)