
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
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 8 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.