This is a small project showing the simplest component which serves as a time duration input of the format: hh:mm.
React + Typescript with Vite
- "Duration slot" - Each of the duration's sections -
hh&mm- is considered a slot of the time duration.
- Increment/decrement with arrows - Provides on each "duration slot" an
ArrowUp&ArrowDownfunctionality for incrementing/decrementing the slot's value. - Moving between slots - Provides the ability to move from one slot to another (from the
hhsection to themmone, and vice versa) using theArrowLeft&ArrowRightkeys. - Increment/decrement cyclically - 00:00, 00:01, ..., 00:59, 01:00, ..., 99:59, 00:00 (see Limits).
"00"≤hh≤"99""00"≤mm≤"59"