-
Beta Was this translation helpful? Give feedback.
Answered by
vaunus
Apr 4, 2023
Replies: 1 comment
-
Never mind, I figured this out. If anyone comes across this, I changed the Chakra slider to a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vaunus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never mind, I figured this out. If anyone comes across this, I changed the Chakra slider to a
step
of 1, then then set 0 as themin
, andmax
to the arraylength-1
of my array of fixed values which get passed into the wrapper component. Then treat the selected value of Chakra slider as an array index within that array of values to work out what value is selected. Thestep
of 1 between values gives the fixed spacing and then I set the labels to the values in my outer array of values.