Input Date Picker contains a calendar component within an input used for choosing a day of a month.
Overview
Input Date Picker is an input-driven component containing the Date Picker.
Sample
Component comparison
Input Date Picker and Date Picker both help users choose dates, but serve different needs.
Usage
- Choosing a day
- Choosing a range of days
Best practices

range to allow users to select a start and end date.
Validation
Use validationMessage to provide guidance when an Input Date Pickers's status is "invalid". The validationMessage should explain how to fix the error and avoid generic messages such as “invalid value.”

validationMessage to give users clear, actionable guidance when a value is invalid.validationMessage that doesn't give users enough context to correct the error.Accessibility
Keyboard navigation
For more detailed keyboard navigation, visit the Date Picker's keyboard navigation.
| Key | Function |
|---|---|
Tab | Moves focus in and out of the component. |
Tab and Shift | Moves focus in and out of the component. |
Arrow down | Opens and shifts focus to the calcite-date-picker component. |
Esc | When the calcite-date-picker component is open, closes the component and shifts focus back to the calcite-input-date-picker. |
API reference
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
| calendars | calendars | When | 1 | 2 | 2 |
| clearable | clearable | When | boolean | false |
| disabled | disabled | When | boolean | false |
| flipPlacements | Specifies the component's fallback | FlipPlacement[] | undefined | ||
| focusTrapDisabled | focus-trap-disabled | When | boolean | false |
| form | form | Specifies the | string | undefined | |
| headingLevel | heading-level | Specifies the heading level number of the component's | HeadingLevel | undefined | |
| label | label | Specifies an accessible label for the component. | string | undefined | |
| labelText | label-text | Specifies the component's label text. | string | undefined | |
| layout | layout | Defines the component's layout. | "horizontal" | "vertical" | "horizontal" |
| max | max | When the component resides in a form, specifies the latest allowed date ("yyyy-mm-dd"). | string | undefined | |
| maxAsDate | Specifies the latest allowed date as a full date object. | Date | undefined | ||
| messageOverrides | Replace localized message strings with your own strings. Note: Individual message keys may change between releases. | Record<string, unknown> | undefined | ||
| min | min | When the component resides in a form, specifies the earliest allowed date ("yyyy-mm-dd"). | string | undefined | |
| minAsDate | Specifies the earliest allowed date as a full date object. | Date | undefined | ||
| monthStyle | month-style | Specifies the component's month style. | "abbreviated" | "wide" | "wide" |
| name | name | Specifies the name of the component. Required to pass the component's | string | undefined | |
| numberingSystem | numbering-system | Specifies the Unicode numeral system used by the component for localization. This property cannot be dynamically changed. | NumberingSystem | undefined | |
| open | open | When | boolean | false |
| overlayPositioning | overlay-positioning | Specifies the type of positioning to use for overlaid content.
| OverlayPositioning | "absolute" |
| placeholder | placeholder | Specifies placeholder text for the component. | string | undefined | |
| placement | placement | Determines the | MenuPlacement | "bottom-start" |
| proximitySelectionDisabled | proximity-selection-disabled | When | boolean | false |
| range | range | When | boolean | false |
| readOnly | read-only | When | boolean | false |
| required | required | When | boolean | false |
| scale | scale | Specifies the size of the component. | "s" | "m" | "l" | "m" |
| status | status | Specifies the input field's status, which determines message and icons. | Status | "idle" |
| topLayerDisabled | top-layer-disabled | When | boolean | false |
| validationIcon | validation-icon | Specifies the validation icon to display under the component. | IconName | boolean | undefined | |
| validationMessage | validation-message | Specifies the validation message to display under the component. | string | undefined | |
| validity | The component's current validation state. | ValidityState | ||
| value | value | Selected date as a string in ISO format ( | string | string[] | |
| valueAsDate | The component's | Date | Date[] | undefined |
Slots
| Name | Description |
|---|---|
| label-content | A slot for rendering content next to the component's |
Styles
| Name | Description |
|---|---|
| --calcite-input-date-picker-actions-icon-color | Specifies the component's actions icon color. |
| --calcite-input-date-picker-actions-icon-color-hover | Specifies the component's actions icon color on hover. |
| --calcite-input-date-picker-background-color | Specifies the component's input background color. |
| --calcite-input-date-picker-border-color | Specifies the component's input border color. |
| --calcite-input-date-picker-calendar-actions-background-color | Specifies the background color of the component's calendar actions. |
| --calcite-input-date-picker-calendar-actions-background-color-hover | Specifies the background color of the component's calendar actions when hovered. |
| --calcite-input-date-picker-calendar-actions-background-color-press | Specifies the background color of the component's calendar actions when pressed. |
| --calcite-input-date-picker-calendar-actions-text-color | Specifies the text color of the component's calendar actions. |
| --calcite-input-date-picker-calendar-actions-text-color-press | Specifies the text color of the component's calendar actions when pressed. |
| --calcite-input-date-picker-calendar-border-color | Specifies the border color of the component's calendar. |
| --calcite-input-date-picker-calendar-corner-radius | Specifies the corner radius of the component's calendar. |
| --calcite-input-date-picker-calendar-current-day-text-color | Specifies the text color of the component's calendar current day element. |
| --calcite-input-date-picker-calendar-day-background-color | Specifies the background color of the component's calendar day elements. |
| --calcite-input-date-picker-calendar-day-background-color-hover | Specifies the background color of the component's calendar day elements when hovered. |
| --calcite-input-date-picker-calendar-day-current-text-color | --calcite-input-date-picker-calendar-current-day-text-color instead. Specifies the text color of current day of the component's date-picker. |
| --calcite-input-date-picker-calendar-day-range-background-color | Specifies the background color of the component's calendar selected day range. |
| --calcite-input-date-picker-calendar-day-range-text-color | Specifies the text color of the component's calendar selected day range. |
| --calcite-input-date-picker-calendar-day-text-color-selected | Specifies the text color of component's calendar selected day. |
| --calcite-input-date-picker-calendar-day-outside-range-background-color-hover | Specifies the background color of the component's calendar day elements outside the current range when hovered. |
| --calcite-input-date-picker-calendar-day-outside-range-text-color-hover | Specifies the text color of the component's calendar day elements outside the current range when hovered. |
| --calcite-input-date-picker-calendar-day-text-color | Specifies the text color of the component's calendar day elements. |
| --calcite-input-date-picker-calendar-day-text-color-hover | Specifies the text color of the component's calendar day elements when hovered. |
| --calcite-input-date-picker-calendar-selected-background-color | Specifies the background color of the component's calendar selected day. |
| --calcite-input-date-picker-calendar-shadow | Specifies the component's calendar shadow. |
| --calcite-input-date-picker-calendar-icon-color | Specifies the component's calendar icon color. |
| --calcite-input-date-picker-calendar-icon-color-hover | Specifies the component's calendar icon color when hovered. |
| --calcite-input-date-picker-calendar-month-select-text-color | Specifies the text color of the component's calendar selected month. |
| --calcite-input-date-picker-calendar-range-divider-color | When |
| --calcite-input-date-picker-calendar-text-color | Specifies the text color of the component's calendar week, year & suffix. |
| --calcite-input-date-picker-corner-radius | Specifies the component's input corner radius. |
| --calcite-input-date-picker-divider-color | When |
| --calcite-input-date-picker-icon-color | Specifies the component's input icon color. |
| --calcite-input-date-picker-placeholder-text-color | Specifies the component's input placeholder text color. |
| --calcite-input-date-picker-shadow | Specifies the component's input shadow. |
| --calcite-input-date-picker-text-color | Specifies the component's input text color. |
| --calcite-input-date-picker-input-action-background-color | Specifies the background color of the input's |
| --calcite-input-date-picker-input-action-background-color-hover | Specifies the background color of the input's |
| --calcite-input-date-picker-input-action-background-color-press | Specifies the background color of the input's |
| --calcite-input-date-picker-input-action-icon-color | Specifies the icon color of the input's |
| --calcite-input-date-picker-input-action-icon-color-hover | Specifies the icon color of the input's |
| --calcite-input-date-picker-input-action-icon-color-press | Specifies the icon color of the input's |
Events
| Name | Description | Behavior |
|---|---|---|
| calciteInputDatePickerBeforeClose | Fires when the component is requested to be closed and before the closing transition begins. | |
| calciteInputDatePickerBeforeOpen | Fires when the component is added to the DOM but not rendered, and before the opening transition begins. | |
| calciteInputDatePickerChange | Fires when the component's | |
| calciteInputDatePickerClose | Fires when the component is closed and animation is complete. | |
| calciteInputDatePickerOpen | Fires when the component is opened and animation is complete. |
Methods
| Name | Description | Signature |
|---|---|---|
| componentOnReady | Creates a promise that resolves once the component is fully loaded. | componentOnReady(): Promise<this> |
| reposition | Updates the component's position. | reposition(delayed?: boolean): Promise<void> |
| setFocus | Sets focus on the component. | setFocus(options?: FocusOptions): Promise<void> |
