Time Field
A time field allows users to enter and edit time values using a keyboard. Each part of a time value is displayed in an individually editable segment.

Installation

In the terminal, run the following command to begin:
npx hq-kit add time-field

Basic

Default
––––AM
Readonly
––––AM
Invalid
––––AM
Disabled
––––AM

Hour Cycles

Change the hour format in the time field by using the hourCycle prop.

Event time
1345

Controlled

Event time
1145AM
value: {"hour":11,"minute":45,"second":0,"millisecond":0}

Validation

Event time
––––AM