Provides state management for a time field component.
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.
The month number within the year. Note that some calendar systems such as Hebrew
may have a variable number of months per year. Therefore, month numbers may not
always correspond to the same month names in different years.
Returns a new CalendarDateTime with the given field adjusted by a specified amount.
When the resulting value reaches the limits of the field, it wraps around.
toDate(
(timeZone: string,
, disambiguation?: Disambiguation
)): Date
Converts the date to a native JavaScript Date object in the given time zone.
The month number within the year. Note that some calendar systems such as Hebrew
may have a variable number of months per year. Therefore, month numbers may not
always correspond to the same month names in different years.
Returns a new CalendarDate with the given field adjusted by a specified amount.
When the resulting value reaches the limits of the field, it wraps around.
The month number within the year. Note that some calendar systems such as Hebrew
may have a variable number of months per year. Therefore, month numbers may not
always correspond to the same month names in different years.
Returns a new ZonedDateTime with the given field adjusted by a specified amount.
When the resulting value reaches the limits of the field, it wraps around.
A placeholder time that influences the format of the placeholder shown when no value is selected.
Defaults to 12:00 AM or 00:00 depending on the hour cycle.
Whether to use native HTML form validation to prevent form submission
when the value is missing or invalid, or mark the field as required
or invalid via ARIA.
A function that returns an error message if a given value is invalid.
Validation errors are displayed to the user when the form is submitted
if validationBehavior="native". For realtime validation, use the isInvalid
prop instead.