
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
react-image-pointer
Advanced tools
A React component for creating interactive images with clickable points and information cards connected by lines. Enhanced with improved modal, better performance, and enhanced interactivity.
Un componente React interactivo que permite crear imágenes con puntos de interés conectados a información detallada.
npm install image-pointed
import { ImagePointed } from 'image-pointed';
const App = () => {
const itemData = {
details: {
title: "Mi Imagen Interactiva",
description: "Descripción de la imagen"
},
points: [
{
id: "1",
x: 25, // Porcentaje desde la izquierda
y: 30, // Porcentaje desde arriba
info: {
title: "Punto 1",
description: "Descripción del punto 1"
},
link: {
title: "Ver más",
url: "https://ejemplo.com"
},
image: {
src: "https://ejemplo.com/imagen.jpg",
alt: "Imagen del punto"
}
},
{
id: "2",
x: 75,
y: 60,
info: {
title: "Punto 2",
description: "Descripción del punto 2"
}
}
]
};
return (
<ImagePointed
src="https://ejemplo.com/imagen-principal.jpg"
maxHeight="600px"
itemData={itemData}
isDarkMode={false}
/>
);
};
| Prop | Tipo | Requerido | Por defecto | Descripción |
|---|---|---|---|---|
src | string | ✅ | - | URL de la imagen principal |
itemData | object | ✅ | - | Datos de los puntos e información |
maxHeight | string | ❌ | "600px" | Altura máxima de la imagen |
isDarkMode | boolean | ❌ | false | Activar modo oscuro |
{
details: {
title: string, // Título principal
description?: string // Descripción opcional
},
points: [
{
id: string, // ID único del punto
x: number, // Posición X en porcentaje (0-100)
y: number, // Posición Y en porcentaje (0-100)
info: {
title: string, // Título del punto
description: string // Descripción del punto
},
link?: { // Enlace opcional
title: string,
url: string
},
image?: { // Imagen opcional
src: string,
alt: string
}
}
]
}
import React from 'react';
import { ImagePointed } from 'image-pointed';
const ExampleComponent = () => {
const data = {
details: {
title: "iPhone 16 Pro",
description: "Descubre las características más importantes del nuevo iPhone 16 Pro"
},
points: [
{
id: "camera",
x: 20,
y: 25,
info: {
title: "Cámara Triple",
description: "Sistema de cámara profesional con zoom óptico de 5x"
},
link: {
title: "Ver especificaciones",
url: "https://apple.com/camera"
},
image: {
src: "/images/camera-detail.jpg",
alt: "Detalle de la cámara"
}
},
{
id: "screen",
x: 80,
y: 40,
info: {
title: "Pantalla Super Retina XDR",
description: "Pantalla de 6.7 pulgadas con tecnología OLED"
}
}
]
};
return (
<div className="container mx-auto p-4">
<ImagePointed
src="/images/iphone-16-pro.jpg"
maxHeight="700px"
itemData={data}
isDarkMode={true}
/>
</div>
);
};
export default ExampleComponent;
MIT
FAQs
A React component for creating interactive images with clickable points and information cards connected by lines. Enhanced with improved modal, better performance, and enhanced interactivity.
The npm package react-image-pointer receives a total of 1 weekly downloads. As such, react-image-pointer popularity was classified as not popular.
We found that react-image-pointer demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.