
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
react-image-zoom-on-hover
Advanced tools
A simple React component for zooming images.
npm install react-image-zoom-on-hover
The component has only one required props: the link to the image.
import React from 'react';
import { ZoomImage } from 'react-image-zoom-on-hover';
const App = () => {
return (
<div>
<ZoomImage imageUrl="https://example.com/path/to/image.jpg" />
</div>
);
};
export default App;
imageUrl (required): The URL of the image to be displayed.
imageZoomPosition (optional): The position of the zoomed-in image. Can be set to "right" or "left". Defaults to "center" if not specified.
// Displaying the zoomed-in image on the center (default behavior)
<ZoomImage imageUrl="https://example.com/path/to/image.jpg" />
// Displaying the zoomed-in image on the left
<ZoomImage imageUrl="https://example.com/path/to/image.jpg" imageZoomPosition="left" />
If the imageZoomPosition props is provided, it must have a valid value ("right" or "left"). Not providing this props or providing an invalid value may result in errors or unexpected behavior.
FAQs
A simple React component for zooming images.
The npm package react-image-zoom-on-hover receives a total of 0 weekly downloads. As such, react-image-zoom-on-hover popularity was classified as not popular.
We found that react-image-zoom-on-hover demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.