Time field
A field for the time of day.
The pickup point is open from 10 AM to 8 PM
The value is a string such as 09:30, with no time zone. The hour format and the order of the parts follow the app language.
Installation
import { NuiTimeField } from '@numior/kit';Usage
Add seconds and change the hour format, the minute step and the states of the field.
Examples
Show the time in another language
Set locale.
Add seconds
Add seconds.
Order 20408 was handed to the courier
Behavior
Digits fill the parts one by one, and the caret moves to the next part once the current one is full. While any part is empty, the model is null.
A time before min or after max turns into the nearest limit when the focus leaves the field.
Accessibility
A screen reader names each part of the time, such as "hour" or "minute". Tab stops on one part only, and the left and right arrows move between the parts. The parts run left to right in right-to-left text too.