spinners-react icon indicating copy to clipboard operation
spinners-react copied to clipboard

How to set the background color to "transparent"?

Open sarchibald-mdsol opened this issue 3 years ago • 2 comments

sarchibald-mdsol avatar Sep 20 '22 15:09 sarchibald-mdsol

I'd like to have the background color of the spinner be "transparent". Is there a way to do this?

sarchibald-mdsol avatar Sep 20 '22 15:09 sarchibald-mdsol

Hey there! That works just like in CSS. Supply an RGBA color to the secondaryColor property, with the alpha channel set to 0.

<SpinnerCircular secondaryColor="rgba(0, 0, 0, 0)" />

colinchadwick avatar Sep 25 '22 14:09 colinchadwick