react-smooth-image
react-smooth-image copied to clipboard
Unable to add class to SmoothImage
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 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 any update on this? I'd love this feature :)