How change color react-date-range (solved)
I use dependency react-date-range
I want change color to red (for example)
how I can achieve it?
https://codesandbox.io/p/sandbox/ecstatic-cohen-pmw79g?file=%2F.gitignore%3A1%2C1
SOLUTION:
add color={'red'}
16 Replies
the various color options in the documentation don't do what you want? https://www.npmjs.com/package/react-date-range
npm
react-date-range
A React component for choosing dates and date ranges.. Latest version: 1.4.0, last published: 2 years ago. Start using react-date-range in your project by running
npm i react-date-range
. There are 326 other projects in the npm registry using react-date-range.The default values for rangeColors seem to match the RGB values in your screenshot, and the color seems to be the same as well:
https://github.com/hypeserver/react-date-range/blob/master/src/components/DateRange/index.js line 153
So all you'd have to do is use that rangeColors option like described in the docs for the package you're using
Just send me what to do instead docs
all docs without pictues are hard
I think that, but try with three values, and if that doesn't work try with three hexadecimal values instead of named colors
with 3 values doesn't work - red its only for example - in my project i use HEX e.g #202020
how did you use the three values?
why you want know this?
I think now its doesn't matter
I'm very confused, did you fix it somehow?
yes
SOLUTION
I added color={'red'}