UNPKG

react-image-map-resizer

Version:

This is a simple library that makes HTML Image Maps responsive, so that they automatically stay scaled to the size of the image they are attached to using a React hook and native html img and map elements.

6 lines (3 loc) 169 B
import * as react from 'react'; declare const useImageMapResize: (mapName: string) => react.RefObject<HTMLMapElement | null>; export { useImageMapResize as default };