react-loading-skeleton icon indicating copy to clipboard operation
react-loading-skeleton copied to clipboard

Children prop with hidden visibility

Open OFK0 opened this issue 5 months ago • 3 comments

OFK0 avatar Aug 29 '25 06:08 OFK0

@dvtng Do you plan on picking up on community additions to make your lib better or is this repo abandoned? 😅 If so, would be great to state so in the Readme :) Thanks!

juanpablob avatar Sep 24 '25 19:09 juanpablob

Sorry, I had not given this a proper look. I'm not sure about merging this, because it is a pretty different way of thinking about the component.

Is this feature you added compatible with all of the existing features of react-loading-skeleton? For example, the count prop.

If you want to use children, it seems like it would be simple to create a wrapper component in your own code that renders either the skeleton or the content depending on if the content is null.

srmagura avatar Sep 24 '25 20:09 srmagura

@srmagura Hi,

Maybe we can test it, Radix does it, you can pass children it does.

OFK0 avatar Sep 24 '25 23:09 OFK0