react-placeholder
react-placeholder copied to clipboard
Add a "custom-placeholder" default style for showLoadingAnimation
Currently if you pass showLoadingAnimation
while using a custom placeholder you have to make sure your custom placeholder includes one of the the default style class decelerations. Adding a custom-placeholder
class here and passing it by default to all custom placeholders would mean <ReactPlaceholder customPlaceholder={<StyledLine />} showLoadingAnimation />
would just work ⚡
I'm unable to get the showLaodingAnimation prop to work as shown in the documentation. I had to explicitly add a class of "show-loading-animation".