Skip to content

How to remove the wrapping span? #197

Answered by srmagura
27shutterclicks asked this question in Q&A
Discussion options

You must be logged in to vote

I recommend using the containerClassName prop to style the container span so that it does not cause layout issues in your app.

Alternatively, you can import our CSS file and then write

<span className="react-loading-skeleton" />

That will give you just the "inner element" with the container span. Of course, you are no longer using our React component so you won't be able to use the props that it provides.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@27shutterclicks
Comment options

Answer selected by 27shutterclicks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants