Skip to content

LiamMartens/react-image-hotspot

Repository files navigation

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}
    />
  );
}

About

Library to allow creating hotspots on a image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published