Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

78
Views
Chakra SliderFilledTrack with dynamic value

I have a Chakra Slider

<Slider minW="181px" defaultValue={0} onChange={() => console.log('changing')}>
  <SliderTrack>
    <SliderFilledTrack bg="purple.500" />
    </SliderTrack>
   <SliderThumb />
 </Slider>

I have a ratio state that I would like to use for my slider. The slider should autoplay without manual clicking and dragging the SliderThumb based on the value of the ratio that keeps changing with every render.

const [ratio, setRatio] = useState(0);

useEffect(() => {
  setRatio(playedTime / duration);
}, [playedTime, duration]);

However I cannot find an autoplay option in the Chakra docs

Is autofilling the chakra slider with a dynamic value possible?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!