checkbox icon indicating copy to clipboard operation
checkbox copied to clipboard

Change the color?

Open KolbySisk opened this issue 5 years ago • 2 comments

How can I change the default blue color? I don't see this documented anywhere.

KolbySisk avatar Dec 14 '20 03:12 KolbySisk

You can use className. And custom css.

xrkffgg avatar Dec 14 '20 03:12 xrkffgg

I suppose that works.

The main reason I'm looking for a 3rd party checkbox solution is so I don't have to include hacky custom checkbox css in my project. Changing the color is pretty straight forward:

 .rc-checkbox .rc-checkbox-inner {
    background-color: red;
    border-color: red;
  }

But I'd also like to change the size, and with the code required to make that happen it starts to defeat the purpose. I might as well roll my own checkbox.

A prop to change the color and size (maybe border radius as well) would be a big selling point for me.

Cheers.

KolbySisk avatar Dec 14 '20 04:12 KolbySisk