
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
react-image-zoom-in-place
Advanced tools
A react component to display zoomable images.
The zoom works both on mouse & touchscreen, and is done within the original bounds of the image.
Name | Type | Optional | Description |
---|---|---|---|
src | string | url or base64 string for the image | |
alt | string | x | alt text for the image (using an aria-label) |
zoom | number | default zoom on mouse hover | |
maxZoom | number | maximum allowed zoom muliplication by scroll or touch pinch | |
step | number | zoom step on mouse scroll | |
width | number | x | override default width |
height | number | x | override default height |
Width and height parameters are optional, but using them can avoid layout shift when the image loads. If only one is defined, the second one is derived from the image aspect ratio.
import { ZoomableImage } from "react-image-zoom-in-place";
export default function Home() {
return (
<div >
<ZoomableImage
src={"<image url or base64 here>"}
alt="alt text"
zoom={2}
maxZoom={10}
step={0.1}
/>
</div>
);
}
MIT
https://github.com/MilanFIN/react-image-zoom-in-place
FAQs
A react component to display zoomable images.
The npm package react-image-zoom-in-place receives a total of 0 weekly downloads. As such, react-image-zoom-in-place popularity was classified as not popular.
We found that react-image-zoom-in-place demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.