react-smooth-image icon indicating copy to clipboard operation
react-smooth-image copied to clipboard

Unable to add class to SmoothImage

Open vovkind opened this issue 6 years ago • 2 comments

Hi.

First of all - great library, helped me a lot!

I'd like to add class to the main element, like

<SmoothImage className={className} ... />

Can you please implement such functionality?

vovkind avatar Oct 30 '18 18:10 vovkind

@vovkind Hi, I might add that in the next release.

meanwhile you can use containerStyles prop and copy the styles of the classname there as a workaround if you want the classname on the parent element for just styling.

you can also wrap the smooth-image element in a parent element(a simple div tag should work) and use the CSS child selector to target the first direct child.

Hope that helps cheers.

arjunkathuria avatar Oct 31 '18 04:10 arjunkathuria

@arjunkathuria any update on this? I'd love this feature :)

erwin-iconi avatar Sep 27 '19 19:09 erwin-iconi