Is there any way to change the styling based on react State. #5220
Unanswered
RabzTims-04
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@RabzTims-04 Something like this?
In Options which can have state value
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to change the background color of my Menu and control. I am already passing CustomStyles Object to my styles property on Select. But I want to change the background color depending on some boolean value:
For example:
customStyle:{
option: (provided) => ({
...provided,
backgroundColor: bg ? "red" : "blue"
})
}
My question is how can I pass this bg prop? This prop is coming from my react component.
Beta Was this translation helpful? Give feedback.
All reactions