react-hotspots
v1.3.2
Published
   |
| top | String, required | | Vertical position with css units(px,%,etc.) |
| triggerIcon | React element/image/svg, optional | <AiFillInfoCircle /> - from react-icons/ai library | React element / image / svg / a react-icon to indicate the hotspot |
| className | String, optional | | Apply custom classname to the hotspot element |
| iconSize | String, optional | 30px | Set the font size for the icon. This will be applied to individual hotspot and will override the global value. |
| iconColor | String, optional | #ffffff | Set the icon color. This will be applied to individual hotspot and will override the global value. |
| modal | Boolean, optional | false | If set to true, the hotspot content will be displayed in a modal. |
| content | React or HTML element, optional | | Hotspot content. If no content is provided, only the icon would be displayed
License
MIT License © 2023 the-marolie
