checkbox
checkbox copied to clipboard
Change the color?
How can I change the default blue color? I don't see this documented anywhere.
You can use className. And custom css.
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.