Replies: 1 comment
-
Hi @jainAtish. Style can be applied using the You can also test it using the react-image-hotspots storybook. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unable to access style passed as props
File: Hotspot.js
In document : style props is present
Hotspot.propTypes = {
/** percentage from the left of the image to show this hotspot /
x: _propTypes["default"].number,
/* percentage from the top of the image to show this hotspot /
y: _propTypes["default"].number,
/* the content of the hotspot /
content: _propTypes["default"].element
/* the style of the hotspot */
style: PropTypes.object
};
After Install : No Style props available nor able to access it
Hotspot.propTypes = {
/** percentage from the left of the image to show this hotspot /
x: _propTypes["default"].number,
/* percentage from the top of the image to show this hotspot /
y: _propTypes["default"].number,
/* the content of the hotspot */
content: _propTypes["default"].element
};
Any upcoming version is coming fixing this?
Beta Was this translation helpful? Give feedback.
All reactions