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
CLI
Manual
npx hq-kit add time-field
Basic
Preview
Code
Default
––––AM
Readonly
––––AM
Invalid
––––AM
Disabled
––––AM
Hour Cycles
Change the hour format in the time field by using the hourCycle
prop.
Preview
Code
Event time
1345
Controlled
Preview
Code
Event time
1145AM
value: {"hour":11,"minute":45,"second":0,"millisecond":0}
Validation
Preview
Code