react-image-hotspot
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

react-image-hotspot

This is a small library providing functionality to create hotspots on an image. Demo

Installation

yarn add react-image-hotspot

Getting started

Simply import and use the ImgaeHotspot component

import { ImageHotspot } from 'react-image-hotspot';

const App = () => {
  const [value, setValue] = React.useState([]);

  return (
    <ImageHotspot
      src="https://...image"
      value={value}
      onChange={setValue}
    />
  );
}

/react-image-hotspot/

    Package Sidebar

    Install

    npm i react-image-hotspot

    Weekly Downloads

    42

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    58 kB

    Total Files

    18

    Last publish

    Collaborators

    • liammartens