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

256
Views
React time duration input

I am new to react and I am working on a project. I want the user to input the time that he has spent on doing work. For example, the user can input 2:20 hours or 1:30 hours that he has spent on a task. I am using material UI and I have tried to use TextField with type=time. And it could work on desktop but it is rendered differently on mobile.

This is how it is looking on the desktop. And this is still good.

This is how it is looking on desktop

this is how it looks on desktop

But as it is an time input field, on mobile it is rendered as a clock. And this is not what i want. I want input as hours and minutes spend.

rendered on mobile

This might be because of browser renders time input in this way on mobiles.

So is there any way that I can render it on mobile the same as it is rendered on desktop or there is any other react package available that I can use for time-duration input? I have tried some packages from npm but those do not work as expected.

about 4 years ago · Juan Pablo Isaza
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!