Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add class to SmoothImage #1

Open
vovkind opened this issue Oct 30, 2018 · 2 comments
Open

Unable to add class to SmoothImage #1

vovkind opened this issue Oct 30, 2018 · 2 comments

Comments

@vovkind
Copy link

vovkind commented Oct 30, 2018

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?

@arjunkathuria
Copy link
Owner

@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.

@erwin-iconi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants