/

Time KIT

Examples API Source code

[mode]
Time format mode
MaskitoTimeMode
[dayPeriod]
Tuple of two locale-specific day-period markers (AM-marker first, PM-marker second). When both are non-empty, the mask switches to 12-hour format and appends the selected marker to the time.

Default:['', ''] (24-hour format)

readonly [string, string]
[separators]
Separators between time segments (left to right). If shorter than the number of positions in the mode, remaining positions use the canonical separators from the mode ( ':' or '.' ).

Default:[] (uses canonical separators from mode)

ReadonlyArray<string>
[timeSegmentMinValues]
Minimum value for each time segment

Default:
{hours: 0}  /  {hours: 1} for time format without / with meridiem period

MaskitoTimeSegments<number>
[timeSegmentMaxValues]
Maximum value for each time segment

Default:
{hours: 24}  /  {hours: 12} for time format without / with meridiem period

MaskitoTimeSegments<number>
[step]
The value by which the keyboard arrows increment/decrement time segments

Default:0 (disable stepping)

number
[prefix]
Uneditable text before time

Default: empty string (no prefix).

string
[postfix]
Uneditable text after time

Default: empty string (no postfix).

string