react-img-zoom icon indicating copy to clipboard operation
react-img-zoom copied to clipboard

Add support to use 100% of container

Open LeoNero opened this issue 5 years ago • 1 comments

Based on #20 , it is a good idea to implement the option to use 100% of the container. The suggested usage is as follows:

<Zoom
  img=""
  zoomScale={3}
  height={600}
  width="100%" // use 100% of the container
  transitionTime = {0.5}
 />

"width" would receive either a string (which would contain how much % the user would like to set the width), or a number, which would be the size of the width in pixels.

LeoNero avatar Mar 20 '19 20:03 LeoNero

any update?

singhaishwarya avatar May 04 '21 16:05 singhaishwarya