Aljullu / react-lazy-load-image-component

React Component to lazy load images and components using a HOC to track window scroll position.
https://www.npmjs.com/package/react-lazy-load-image-component
MIT License
1.46k stars 110 forks source link

How to add class name(s) to rendered img? #94

Closed kristijorgji closed 2 years ago

kristijorgji commented 2 years ago

I know that it support wrapperClassName and generates something like

<span class="profile-photo-sm pull-left lazy-load-image-background  lazy-load-image-loaded" style="display: inline-block;"><img src="https://someurl/superimage.jpg"></span>

I want ot have a class name attached to the image tag itself so rendered like <img class="myclass(es)" ...

How can I do that, I don't see any prop className ?