Basic
A time field allows users to input and adjust time values using a keyboard, with each segment of the time shown as its own editable unit.
Preview
Code
Event time
Installation
CLI
Manual
npx hq-kit add time-field
Hour Cycles
Change the hour format in the time field by using the hourCycle
prop.
Preview
Code
Event time
Validation
To ensure the time field is properly filled out, use the isRequired
prop.
Preview
Code
Controlled
In a controlled time field, the value is provided as a prop, and the field is not editable by the user.
Preview
Code
11:45:00
Event time
Disabled
A disabled time field cannot be interacted with and is visually represented as being inactive.
Preview
Code
Event time