Skip to main content

Date


The Date element enables users to select a calendar date from a popover picker. This element supports minimum and maximum date constraints, required validation, and a shaded visual style. Use this element when a form or workflow requires a specific date entry.

Date input field with label and calendar icon

Properties

PropertyValueDescription
TypeDateUI component type
GroupFieldBelongs to the "Field" group in UI catalog
Identifier9Unique element ID
PreviewDisplays calendar popover on interaction
ValueYAccepts selected date as value
MandatoryYRequires input for form completion
ErrorYDisplays error for invalid or missing values
MinYSupports minimum selectable date
MaxYSupports maximum selectable date
Read-onlyYCan display in locked or view-only mode
Text, IconYDisplays label and calendar icon
EventYTriggers updates when date selection changes
ShadeYUses shaded background style
ChildrenDoes not support nested content
ListNot a list container

Usage Example

<DateInput
label="Away until"
required
minDate={today}
maxDate={endOfWeek}
onChange={handleDateChange}
/>

SDK Integration

The Availability Status screen uses this element when setting a future unavailability period. It links to the SDK method:

Method: /account/doctor/availability-status

Updates a doctor’s status. If the user selects “Away until,” the system displays this field to define the return time. Logic uses the date to calculate availability routing for appointments.


Example UI Placement

LevelIDTypeValueDescription
1dateDateAway untilDefines return date for status setting

Notes

  • Use when workflows require exact day selection.
  • Avoid applying date fields when relative duration (e.g. 1 hour) provides better UX.
  • Pair with Radio, Button, and Regular elements for conditional behavior.