Feature request: Add a utility for dynamic style assignment based on value ranges #214
CavalcanteLeo
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be extremely helpful to have a utility or hook that allows conditional styling based on some logic (e.g.,
value > 10
,value === 10
,value < 10
), rather than manually defining styles each time.Currently, we have to manually create logic for different value ranges and assign corresponding styles, like this:
we could do something like this:
Beta Was this translation helpful? Give feedback.
All reactions