Add support for a custom className

This issue has been tracked since 2020-11-14.

Allow better styling and support for libraries like TailwindCSS by allowing the user to specify className.

It's not needed for the placeholder as you can already supply a custom component.

elodszopos wrote this answer on 2020-11-19

Please god yes, I came here exactly for this!

povilasbaranovas wrote this answer on 2021-02-11

Its really weird and restricting that you can pass class name prefix and not class name. Maybe i do not know something is there some reasoning behind it?
Styled components is the most popular CSS in JS styling solution so far and this library does not have support for them until this PR will be merged. Yes you can add one more additional wrapper, but it should not be required imo.

More info on styled component reliance on class names here:
https://styled-components.com/docs/advanced#existing-css

ameerthehacker wrote this answer on 2021-02-11

@AlexMeah @elodszopos @povilasbaranovas this has been released in v3.2.0, sorry for the delay.

spenweb wrote this answer on 2021-02-27

Does anyone know the release schedule for v3.2.0's corresponding @types/react-lazyload? I am currently //@ts-ignoreing the className attribute error in my .tsx file so that I can use v3.2.0. Thank you for the great package!

More Details About Repo
Owner Name twobin
Repo Name react-lazyload
Full Name twobin/react-lazyload
Language JavaScript
Created Date 2015-08-07
Updated Date 2022-11-29
Star Count 5639
Watcher Count 52
Fork Count 482
Issue Count 153

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date