Closed n-ii-ma closed 7 months ago
If you want it to display none you can conditionally render it. Or don’t set a height/width and it’ll match the size of its child.
A common pattern for text skeletons is to show dummy text as a fallback when show is set to true so that it takes up space still
Is there an existing issue for this?
Do you want this issue prioritized?
Current Behavior
Skeleton is taking its defined
width
andheight
space even when it's set toshow={false}
. In CSS terms it behaves as if itsvisibility
is set tohidden
!Expected Behavior
It should completely disappear from view as if its CSS
display
is set tonone
.Steps To Reproduce
Versions
Screenshots
No response
Reproduction
Nothing to show.