How can I style the <span> that wraps the individual skeleton element #170
-
I see the skeleton can be styled as <span aria-live="polite" aria-busy="true"> <-- I need to add `width: 100%; height: 100%;` to this span
<span class="react-loading-skeleton">‌</span>
<br>
</span> All these approaches are only styling the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
In Emotion, there is a |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick answer, @srmagura. Interesting, I didn't know Emotion supported it, unfortunately, it seems styled-components doesn't support it yet. I am not too strong about it but just a suggestion, perhaps there could be a prop |
Beta Was this translation helpful? Give feedback.
containerClassName
is the intended way to style the<span aria-live="polite" aria-busy="true">
.In Emotion, there is a
ClassNames
component for this exact use case. Can you check the styled-components documentation to see if they have something similar?