Skip to main content

Time


The Time element captures time-specific input in the Doctor App. It includes visual indicators, inline validation, and support for read-only display. Use this field when the user must select or enter a time value, such as during appointment scheduling or when offering alternatives.

Properties

PropertyValueDescription
TypeTimeUI component type
GroupFieldBelongs to the "Field" group in UI catalog
Identifier50Unique element ID
PreviewDisplays sample input UI (see image)
ValueYAccepts time input from user
MandatoryYRequired in workflows with validation
ErrorYSupports validation error states
MinYCan enforce a minimum time
MaxYCan enforce a maximum time
Read-onlyYCan render as non-editable
Text, IconYSupports label and optional icon
EventYTriggers change or validation events
ShadeYDisplays with shaded styling (when enabled)
ChildrenNot a container
ListNot a list item

Usage Example

<TimeInput
label="Appointment time"
required
min="08:00"
max="22:00"
onChange={handleTimeChange}
/>

SDK Integration

The Suggested Scheduling component uses this element. It maps to the SDK method:

Method: /profile/appointments/{id}/details

Used to define the scheduled time for a new or edited appointment. The value must conform to 24-hour time format and respect validation boundaries.


Example UI Placement

LevelReferenceTypeValueDescription
1time~{x}TimeTimeRequired in alternative suggestion

Notes

  • Accepts HH:MM input in 24-hour format.
  • Commonly used with the Date element.
  • Validation errors appear if time is outside min/max boundaries.