DatePicker API

API documentation for DatePicker component

DatePicker#

Props#

Defines valid properties in DatePicker component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerInstance) => ReactNode)
null
The children to render.
onValueChange(event: DatePickerValueChangeEvent) => void
null
Callback to invoke when the value changes.
defaultValuestring | string[] | Date | Date[]
null
The default value for the input when not controlled by `modelValue` .
valuestring | string[] | Date | Date[]
null
Value of the component.
namestring
null
The name attribute for the element, typically used in form submissions.
selectionMode"multiple" | "range" | "single"
single
Defines the quantity of the selection.
dateFormatstring
null
Format of the date. Defaults to PrimeVue Locale configuration.
updateModelType"string" | "date"
date
Type of the value to write back to modelValue.
selectOtherMonthsboolean
false
Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.
showIconboolean
false
When enabled, displays a button with icon next to input.
iconstring
null
Icon of the datepicker button.
prevIconstring
null
Icon to show in the previous button.
nextIconstring
null
Icon to show in the next button.
incrementIconstring
null
Icon to show in each of the increment buttons.
decrementIconstring
null
Icon to show in each of the decrement buttons.
numberOfMonthsnumber
1
Number of months to display.
breakpointstring
769px
The breakpoint to define the maximum width boundary for datepicker panel.
view"date" | "month" | "year"
date
Type of view to display.
minDateDate
null
The minimum selectable date.
maxDateDate
null
The maximum selectable date.
disabledDatesDate[]
null
Array with dates to disable.
disabledDaysnumber[]
null
Array with disabled weekday numbers.
maxDateCountnumber
null
Maximum number of selectable dates in multiple mode.
showOnFocusboolean
true
When disabled, datepicker will not be visible with input focus.
autoZIndexboolean
true
Whether to automatically manage layering.
baseZIndexnumber
0
Base zIndex value to use in layering.
showButtonBarboolean
false
Whether to display today and clear buttons at the footer.
shortYearCutoffstring
+10
The cutoff year for determining the century for a date.
showTimeboolean
false
Whether to display timepicker.
timeOnlyboolean
false
Whether to display timepicker only.
hourFormat"12" | "24"
24
Specifies hour format.
stepHournumber
1
Hours to change per step.
stepMinutenumber
1
Minutes to change per step.
stepSecondnumber
1
Seconds to change per step.
showSecondsboolean
false
Whether to show the seconds in time picker.
hideOnDateTimeSelectboolean
false
Whether to hide the overlay on date selection when showTime is enabled.
hideOnRangeSelectionboolean
false
Whether to hide the overlay on date selection is completed when selectionMode is range.
timeSeparatorstring
:
Separator of time selector.
manualInputboolean
true
Whether to allow entering the date manually via typing.
showClearboolean
false
When enabled, a clear icon is displayed to clear the value.
size"small" | "large"
null
Defines the size of the component.
invalidboolean
false
When present, it specifies that the component should have invalid state style.
disabledboolean
false
When present, it specifies that the component should be disabled.
variant"outlined" | "filled"
null
Specifies the input variant of the component.
readonlyboolean
false
When present, it specifies that an input field is read-only.
placeholderstring
null
Placeholder text for the input.
requiredboolean
null
When present, it specifies that the component is a required field.
appendToHTMLElement | "body" | "self"
body
A valid query selector or an HTMLElement to specify where the overlay gets attached.
fluidboolean
null
Spans 100% width of the container when enabled.
ariaLabelledbystring
null
Establishes relationships between the component and label(s) where its value should be one or more element IDs.
ariaLabelstring
null
Establishes a string value that labels the component.
onDateSelect(event: useDatePickerDateSelectEvent) => void
null
Callback to invoke when a date is selected.
onMonthChange(event: useDatePickerMonthChangeEvent) => void
null
Callback to invoke when the month changes.
onYearChange(event: useDatePickerYearChangeEvent) => void
null
Callback to invoke when the year changes.
onTodayButtonClick(event: useDatePickerTodayButtonClickEvent) => void
null
Callback to invoke when the today button is clicked.
onClearButtonClick(event: MouseEvent<HTMLButtonElement>) => void
null
Callback to invoke when the clear button is clicked.
onInput(event: ChangeEvent<HTMLInputElement>) => void
null
Callback to invoke on input event.
onKeyDown(event: KeyboardEvent<HTMLButtonElement | HTMLInputElement>) => void
null
Callback to invoke on keydown event.
onFocus(event: FocusEvent<HTMLInputElement>) => void
null
Callback to invoke on focus event.
onBlur(event: useDatePickerBlurEvent) => void
null
Callback to invoke on blur event.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

State#

Defines valid state in DatePicker component.

nametypedefaultdescription
rawValuestring | string[] | Date | Date[]
null
The current raw value of the datepicker (unformatted).
overlayVisibleboolean
null
Whether the overlay is visible.
currentView"date" | "month" | "year"
null
Current view state information.
showClearIconboolean
null
Whether to show the clear icon.
hoveredDateuseDatePickerDateMeta
null
The date currently being hovered in range selection mode.

Exposes#

Defines the methods and properties exposed by DatePicker component.

nametypedefaultdescription
stateuseDatePickerState
null
State object containing the current raw value and view information.
inputRefRefObject<{ elementRef: RefObject<HTMLInputElement> }>
null
Reference to the input element.
nextButtonRefRefObject<{ elementRef: RefObject<HTMLButtonElement> }>
null
Reference to the next navigation button element.
prevButtonRefRefObject<{ elementRef: RefObject<HTMLButtonElement> }>
null
Reference to the previous navigation button element.
portalRefRefObject<{ containerRef: { current: { elementRef: RefObject<HTMLDivElement> } } }>
null
Reference to the portal element.
overlayRefRefObject<HTMLDivElement>
null
Reference to the overlay element.
inputFieldValuestring
null
Formatted value string for the input field.
weekHeaderLabelstring
null
Label text for the week header.
todayLabelstring
null
Label text for today button.
clearLabelstring
null
Label text for clear button.
weekDaysstring[]
null
Array of localized day names for the week.
monthsuseDatePickerMonthData[]
null
Array of month data objects containing dates and week numbers.
monthPickerValues{ value: string; selectable: boolean }[]
null
Array of month picker values.
yearPickerValues{ value: number; selectable: boolean }[]
null
Array of year picker values.
switchViewButtonDisabledboolean
null
Whether the switch view button is disabled.
formattedCurrentHourstring | number
null
Formatted current hour value for display.
formattedCurrentMinutestring | number
null
Formatted current minute value for display.
formattedCurrentSecondstring | number
null
Formatted current second value for display.
ampmLabelstring
null
AM/PM label for 12-hour format.
changeVisibleState(visible: boolean) => void
null
Sets the visibility state of the overlay.
getIndexedMonth(index?: number) => useDatePickerMonthData
null
Returns a specific month by index.
getYear() => number
null
Returns the current year.
getMonthName(index?: number) => string
null
Returns the name of the current month.
isRangeSelection() => boolean
null
Returns whether the selection mode is range.
isSelected(dateMeta: useDatePickerDateMeta) => boolean
null
Checks if a date is selected.
onPrevButtonClick(event: MouseEvent<HTMLButtonElement>) => void
null
Handles previous button click event.
onNextButtonClick(event: MouseEvent<HTMLButtonElement>) => void
null
Handles next button click event.
switchToMonthView(event: MouseEvent<HTMLButtonElement>) => void
null
Switches to month view.
switchToYearView(event: MouseEvent<HTMLButtonElement>) => void
null
Switches to year view.
onDateSelect(event: KeyboardEvent<HTMLSpanElement> | MouseEvent<HTMLSpanElement, MouseEvent>, dateMeta: useDatePickerDateMeta) => void
null
Handles date selection.
onMonthSelect(event: KeyboardEvent<HTMLSpanElement> | MouseEvent<HTMLSpanElement, MouseEvent>, index: number) => void
null
Handles month selection.
onYearSelect(event: KeyboardEvent<HTMLSpanElement> | MouseEvent<HTMLSpanElement, MouseEvent>, year: { value: number }) => void
null
Handles year selection.
onDateCellKeydown(event: KeyboardEvent<HTMLSpanElement>, date: useDatePickerDateMeta, groupIndex: number) => void
null
Handles date cell keydown event.
onMonthCellKeydown(event: KeyboardEvent<HTMLSpanElement>, index: number) => void
null
Handles month cell keydown event.
onYearCellKeydown(event: KeyboardEvent<HTMLSpanElement>, year: { value: number }) => void
null
Handles year cell keydown event.
onButtonClick() => void
null
Handles button click event.
onTimePickerElementMouseDown(event: MouseEvent<HTMLButtonElement>, type: number, direction: number) => void
null
Handles time picker element mouse down event.
onTimePickerElementMouseUp(event: KeyboardEvent<HTMLButtonElement> | MouseEvent<HTMLButtonElement, MouseEvent>) => void
null
Handles time picker element mouse up event.
onTimePickerElementMouseLeave() => void
null
Handles time picker element mouse leave event.
onContainerButtonKeydown(event: KeyboardEvent<HTMLButtonElement>) => void
null
Handles container button keydown event.
onTimePickerElementKeyDown(event: KeyboardEvent<HTMLButtonElement>, type: number, direction: number) => void
null
Handles time picker element keydown event.
onTimePickerElementKeyUp(event: KeyboardEvent<HTMLButtonElement>) => void
null
Handles time picker element keyup event.
toggleAMPM(event: MouseEvent<HTMLButtonElement>) => void
null
Toggles AM/PM.
onTodayButtonClick(event: MouseEvent<HTMLButtonElement>) => void
null
Handles today button click event.
onClearButtonClick(event: MouseEvent<HTMLButtonElement>) => void
null
Handles clear button click event.
onClearClick() => void
null
Handles clear click event.
onInput(event: ChangeEvent<HTMLInputElement>) => void
null
Handles input event.
onInputClick() => void
null
Handles input click event.
onInputKeyDown(event: KeyboardEvent<HTMLInputElement>) => void
null
Handles input keydown event.
onInputFocus(event: FocusEvent<HTMLInputElement>) => void
null
Handles input focus event.
onInputBlur(event: FocusEvent<HTMLInputElement>) => void
null
Handles input blur event.
onOverlayEnter() => void
null
Handles overlay enter event.
parseValue(text: string) => string | string[] | Date | Date[]
null
Parses a string value to date picker value.
isDateEquals(value: string | Date, dateMeta: useDatePickerDateMeta) => boolean
null
Checks if two dates are equal.
isMonthSelected(month: number) => boolean
null
Checks if a month is selected.
isYearSelected(year: number) => boolean
null
Checks if a year is selected.
isInHoverRange(dateMeta: useDatePickerDateMeta) => boolean
null
Checks if a date is in the hover range during range selection.
onDateCellMouseEnter(dateMeta: useDatePickerDateMeta) => void
null
Handles date cell mouse enter event.

Events#

Event fired when the datepicker's value changes.

nametypedescription
valuestring | string[] | Date | Date[]The value of the datepicker.

Interfaces#

Defines passthrough(pt) options of DatePicker component.

nametypedefaultdescription
rootDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.
pcInputTextDatePickerPassThroughType<HTMLAttributes<HTMLInputElement>>
null
Used to pass attributes to the input's DOM element.
portalDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the portal's DOM element.
panelDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the panel's DOM element.
containerDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the container's DOM element.
calendarDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the calendar's DOM element.
headerDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the header's DOM element.
prevDatePickerPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the prev's DOM element.
prevIconDatePickerPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the prevIcon's DOM element.
titleDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the title's DOM element.
selectMonthDatePickerPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the selectMonth's DOM element.
selectYearDatePickerPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the selectYear's DOM element.
decadeDatePickerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the decade's DOM element.
nextDatePickerPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the next's DOM element.
nextIconDatePickerPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the nextIcon's DOM element.
dayViewDatePickerPassThroughType<HTMLAttributes<HTMLTableElement>>
null
Used to pass attributes to the dayView's DOM element.
monthViewDatePickerPassThroughType<HTMLAttributes<HTMLTableElement>>
null
Used to pass attributes to the monthView's DOM element.
yearViewDatePickerPassThroughType<HTMLAttributes<HTMLTableElement>>
null
Used to pass attributes to the yearView's DOM element.
tableHeaderDatePickerPassThroughType<HTMLAttributes<HTMLTableSectionElement>>
null
Used to pass attributes to the tableHeader's DOM element.
tableHeaderRowDatePickerPassThroughType<HTMLAttributes<HTMLTableRowElement>>
null
Used to pass attributes to the tableHeaderRow's DOM element.
weekDayCellDatePickerPassThroughType<HTMLAttributes<HTMLTableCellElement>>
null
Used to pass attributes to the weekDayCell's DOM element.
weekDayDatePickerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the weekDay's DOM element.
weekHeaderDatePickerPassThroughType<HTMLAttributes<HTMLTableSectionElement>>
null
Used to pass attributes to the weekHeader's DOM element.
weekHeaderLabelDatePickerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the weekHeaderLabel's DOM element.
tableBodyDatePickerPassThroughType<HTMLAttributes<HTMLTableSectionElement>>
null
Used to pass attributes to the tableBody's DOM element.
tableBodyRowDatePickerPassThroughType<HTMLAttributes<HTMLTableRowElement>>
null
Used to pass attributes to the tableBodyRow's DOM element.
dayCellDatePickerPassThroughType<HTMLAttributes<HTMLTableCellElement>>
null
Used to pass attributes to the dayCell's DOM element.
monthCellDatePickerPassThroughType<HTMLAttributes<HTMLTableCellElement>>
null
Used to pass attributes to the monthCell's DOM element.
yearCellDatePickerPassThroughType<HTMLAttributes<HTMLTableCellElement>>
null
Used to pass attributes to the yearCell's DOM element.
weekNumberDatePickerPassThroughType<HTMLAttributes<HTMLTableCellElement>>
null
Used to pass attributes to the weekNumber's DOM element.
weekLabelContainerDatePickerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the weekLabelContainer's DOM element.
buttonbarDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the buttonbar's DOM element.
todayDatePickerPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the today's DOM element.
clearDatePickerPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the clear's DOM element.
timePickerDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the timePicker's DOM element.
hourPickerDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the hourPicker's DOM element.
minutePickerDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the minutePicker's DOM element.
secondPickerDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the secondPicker's DOM element.
ampmPickerDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the ampmPicker's DOM element.
incrementDatePickerPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the increment's DOM element.
incrementIconDatePickerPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the incrementIcon's DOM element.
decrementDatePickerPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the decrement's DOM element.
decrementIconDatePickerPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the decrementIcon's DOM element.
hourDatePickerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the hour's DOM element.
minuteDatePickerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the minute's DOM element.
secondDatePickerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the second's DOM element.
ampmDatePickerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the ampm's DOM element.
separatorContainerDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the separatorContainer's DOM element.
separatorDatePickerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the separator's DOM element.
clearIconDatePickerPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the clearIcon's DOM element.
dropdownDatePickerPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the dropdown's DOM element.
dropdownIconDatePickerPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the dropdownIcon's DOM element.
inputIconContainerDatePickerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the inputIconContainer's DOM element.
footerDatePickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the footer's DOM element.

Types#

Instance of DatePicker component.

values
ComponentInstance<DatePickerProps, DatePickerState, DatePickerExposes>

DatePickerInput#

Props#

Defines valid properties in DatePickerInput component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerInputInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerInputInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerInputPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerInputInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerInput component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerInput component.

nametypedefaultdescription
rootDatePickerInputPassThroughType<HTMLAttributes<HTMLInputElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerInput component.

values
ComponentInstance<DatePickerInputProps, DatePickerInputState, DatePickerInputExposes>

DatePickerInputIconContainer#

Props#

Defines valid properties in DatePickerInputIconContainer component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerInputIconContainerInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerInputIconContainerInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerInputIconContainerPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerInputIconContainerInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerInputIconContainer component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerInputIconContainer component.

nametypedefaultdescription
rootDatePickerInputIconContainerPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerInputIconContainer component.

values
ComponentInstance<DatePickerInputIconContainerProps, DatePickerInputIconContainerState, DatePickerInputIconContainerExposes>

DatePickerDropdownIcon#

Props#

Defines valid properties in DatePickerDropdownIcon component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerDropdownIconInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerDropdownIconInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerDropdownIconPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerDropdownIconInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Interfaces#

Defines passthrough(pt) options of DatePickerDropdownIcon component.

nametypedefaultdescription
rootDatePickerDropdownIconPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerDropdownIcon component.

values
ComponentInstance<DatePickerDropdownIconProps, DatePickerDropdownIconState, DatePickerDropdownIconExposes>

DatePickerDropdown#

Props#

Defines valid properties in DatePickerDropdown component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerDropdownInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerDropdownInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerDropdownPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerDropdownInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

State#

Exposes#

Defines the methods and properties exposed by DatePickerDropdown component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Events#

Interfaces#

Defines passthrough(pt) options of DatePickerDropdown component.

nametypedefaultdescription
rootDatePickerDropdownPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerDropdown component.

values
ComponentInstance<DatePickerDropdownProps, DatePickerDropdownState, DatePickerDropdownExposes>

DatePickerClearIcon#

Props#

Defines valid properties in DatePickerClearIcon component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerClearIconInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerClearIconInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerClearIconPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerClearIconInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerClearIcon component.

nametypedefaultdescription
datepickerDatePickerInstance
null
The DatePicker component instance.

Interfaces#

Defines passthrough(pt) options of DatePickerClearIcon component.

nametypedefaultdescription
rootDatePickerClearIconPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerClearIcon component.

values
ComponentInstance<DatePickerClearIconProps, DatePickerClearIconState, DatePickerClearIconExposes>

DatePickerPortal#

Props#

Defines valid properties in DatePickerPortal component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerPortalInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerPortalInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerPortalPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerPortalInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerPortal component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerPortal component.

nametypedefaultdescription
rootDatePickerPortalPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerPortal component.

values
ComponentInstance<DatePickerPortalProps, DatePickerPortalState, DatePickerPortalExposes>

DatePickerPanel#

Props#

Defines valid properties in DatePickerPanel component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerPanelInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerPanelInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerPanelPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerPanelInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerPanel component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerPanel component.

nametypedefaultdescription
rootDatePickerPanelPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerPanel component.

values
ComponentInstance<DatePickerPanelProps, DatePickerPanelState, DatePickerPanelExposes>

DatePickerContainer#

Props#

Defines valid properties in DatePickerContainer component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerContainerInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerContainerInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerContainerPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerContainerInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerContainer component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerContainer component.

nametypedefaultdescription
rootDatePickerContainerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerContainer component.

values
ComponentInstance<DatePickerContainerProps, DatePickerContainerState, DatePickerContainerExposes>

DatePickerCalendar#

Props#

Defines valid properties in DatePickerCalendar component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerCalendarInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerCalendarInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerCalendarPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerCalendarInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerCalendar component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerCalendar component.

nametypedefaultdescription
rootDatePickerCalendarPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerCalendar component.

values
ComponentInstance<DatePickerCalendarProps, DatePickerCalendarState, DatePickerCalendarExposes>

DatePickerHeader#

Props#

Defines valid properties in DatePickerHeader component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerHeaderInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerHeaderInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerHeaderPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerHeaderInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerHeader component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerHeader component.

nametypedefaultdescription
rootDatePickerHeaderPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerHeader component.

values
ComponentInstance<DatePickerHeaderProps, DatePickerHeaderState, DatePickerHeaderExposes>

DatePickerPrev#

Props#

Defines valid properties in DatePickerPrev component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerPrevInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerPrevInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerPrevPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerPrevInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerPrev component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerPrev component.

nametypedefaultdescription
rootDatePickerPrevPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.
prevIconDatePickerPrevPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the prev icon's DOM element.

Types#

Instance of DatePickerPrev component.

values
ComponentInstance<DatePickerPrevProps, DatePickerPrevState, DatePickerPrevExposes>

DatePickerTitle#

Props#

Defines valid properties in DatePickerTitle component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTitleInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTitleInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTitlePassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTitleInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTitle component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerTitle component.

nametypedefaultdescription
rootDatePickerTitlePassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerTitle component.

values
ComponentInstance<DatePickerTitleProps, DatePickerTitleState, DatePickerTitleExposes>

DatePickerSelectMonth#

Props#

Defines valid properties in DatePickerSelectMonth component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerSelectMonthInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerSelectMonthInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerSelectMonthPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerSelectMonthInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerSelectMonth component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerSelectMonth component.

nametypedefaultdescription
rootDatePickerSelectMonthPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerSelectMonth component.

values
ComponentInstance<DatePickerSelectMonthProps, DatePickerSelectMonthState, DatePickerSelectMonthExposes>

DatePickerSelectYear#

Props#

Defines valid properties in DatePickerSelectYear component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerSelectYearInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerSelectYearInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerSelectYearPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerSelectYearInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerSelectYear component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerSelectYear component.

nametypedefaultdescription
rootDatePickerSelectYearPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerSelectYear component.

values
ComponentInstance<DatePickerSelectYearProps, DatePickerSelectYearState, DatePickerSelectYearExposes>

DatePickerDecade#

Props#

Defines valid properties in DatePickerDecade component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerDecadeInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerDecadeInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerDecadePassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerDecadeInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerDecade component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerDecade component.

nametypedefaultdescription
rootDatePickerDecadePassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerDecade component.

values
ComponentInstance<DatePickerDecadeProps, DatePickerDecadeState, DatePickerDecadeExposes>

DatePickerNext#

Props#

Defines valid properties in DatePickerNext component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerNextInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerNextInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerNextPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerNextInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerNext component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerNext component.

nametypedefaultdescription
rootDatePickerNextPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.
nextIconDatePickerNextPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the next icon's DOM element.

Types#

Instance of DatePickerNext component.

values
ComponentInstance<DatePickerNextProps, DatePickerNextState, DatePickerNextExposes>

DatePickerTable#

Props#

Defines valid properties in DatePickerTable component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTableInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTableInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTablePassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTableInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTable component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerTable component.

nametypedefaultdescription
rootDatePickerTablePassThroughType<HTMLAttributes<HTMLTableElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerTable component.

values
ComponentInstance<DatePickerTableProps, DatePickerTableState, DatePickerTableExposes>

DatePickerTableHead#

Props#

Defines valid properties in DatePickerTableHead component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTableHeadInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTableHeadInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTableHeadPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTableHeadInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTableHead component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerTableHead component.

nametypedefaultdescription
rootDatePickerTableHeadPassThroughType<HTMLAttributes<HTMLTableSectionElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerTableHead component.

values
ComponentInstance<DatePickerTableHeadProps, DatePickerTableHeadState, DatePickerTableHeadExposes>

DatePickerTableHeadRow#

Props#

Defines valid properties in DatePickerTableHeadRow component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTableHeadRowInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTableHeadRowInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTableHeadRowPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTableHeadRowInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTableHeadRow component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerTableHeadRow component.

nametypedefaultdescription
rootDatePickerTableHeadRowPassThroughType<HTMLAttributes<HTMLTableRowElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerTableHeadRow component.

values
ComponentInstance<DatePickerTableHeadRowProps, DatePickerTableHeadRowState, DatePickerTableHeadRowExposes>

DatePickerTableHeadCell#

Props#

Defines valid properties in DatePickerTableHeadCell component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTableHeadCellInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTableHeadCellInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTableHeadCellPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTableHeadCellInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTableHeadCell component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerTableHeadCell component.

nametypedefaultdescription
rootDatePickerTableHeadCellPassThroughType<HTMLAttributes<HTMLTableCellElement>>
null
Used to pass attributes to the root's DOM element.
weekDayDatePickerTableHeadCellPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the week day label's DOM element.

Types#

Instance of DatePickerTableHeadCell component.

values
ComponentInstance<DatePickerTableHeadCellProps, DatePickerTableHeadCellState, DatePickerTableHeadCellExposes>

DatePickerTableHeadWeekCell#

Props#

Defines valid properties in DatePickerTableHeadWeekCell component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTableHeadWeekCellInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTableHeadWeekCellInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTableHeadWeekCellPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTableHeadWeekCellInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTableHeadWeekCell component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerTableHeadWeekCell component.

nametypedefaultdescription
rootDatePickerTableHeadWeekCellPassThroughType<HTMLAttributes<HTMLTableCellElement>>
null
Used to pass attributes to the root's DOM element.
weekHeaderLabelDatePickerTableHeadWeekCellPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the week header label's DOM element.

Types#

Instance of DatePickerTableHeadWeekCell component.

values
ComponentInstance<DatePickerTableHeadWeekCellProps, DatePickerTableHeadWeekCellState, DatePickerTableHeadWeekCellExposes>

DatePickerTableBody#

Props#

Defines valid properties in DatePickerTableBody component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTableBodyInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTableBodyInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTableBodyPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTableBodyInstance) => ReactNode)
null
The children to render.
view"date" | "month" | "year"
date
Current view of the date picker.
indexnumber
0
Index of the table body.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTableBody component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerTableBody component.

nametypedefaultdescription
rootDatePickerTableBodyPassThroughType<HTMLAttributes<HTMLTableSectionElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerTableBody component.

values
ComponentInstance<DatePickerTableBodyProps, DatePickerTableBodyState, DatePickerTableBodyExposes>

DatePickerTableBodyRow#

Props#

Defines valid properties in DatePickerTableBodyRow component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTableBodyRowInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTableBodyRowInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTableBodyRowPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTableBodyRowInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTableBodyRow component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerTableBodyRow component.

nametypedefaultdescription
rootDatePickerTableBodyRowPassThroughType<HTMLAttributes<HTMLTableRowElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerTableBodyRow component.

values
ComponentInstance<DatePickerTableBodyRowProps, DatePickerTableBodyRowState, DatePickerTableBodyRowExposes>

DatePickerTableBodyCell#

Props#

Defines valid properties in DatePickerTableBodyCell component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTableBodyCellInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTableBodyCellInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTableBodyCellPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTableBodyCellInstance) => ReactNode)
null
The children to render.
dateuseDatePickerDateMeta
null
Date metadata for the cell.
monthuseDatePickerMonthOptions
null
Month options for the cell.
indexnumber
null
Month index of the cell.
yearuseDatePickerYearOptions
null
Year options for the cell.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTableBodyCell component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.
datepickertablebodyDatePickerTableBodyInstance
null
Instance of the DatePickerTableBody component.

Interfaces#

Defines passthrough(pt) options of DatePickerTableBodyCell component.

nametypedefaultdescription
rootDatePickerTableBodyCellPassThroughType<HTMLAttributes<HTMLTableCellElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerTableBodyCell component.

values
ComponentInstance<DatePickerTableBodyCellProps, DatePickerTableBodyCellState, DatePickerTableBodyCellExposes>

DatePickerTableBodyWeekCell#

Props#

Defines valid properties in DatePickerTableBodyWeekCell component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTableBodyWeekCellInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTableBodyWeekCellInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTableBodyWeekCellPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTableBodyWeekCellInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTableBodyWeekCell component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerTableBodyWeekCell component.

nametypedefaultdescription
rootDatePickerTableBodyWeekCellPassThroughType<HTMLAttributes<HTMLTableCellElement>>
null
Used to pass attributes to the root's DOM element.
weekLabelContainerDatePickerTableBodyWeekCellPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the week label container's DOM element.

Types#

Instance of DatePickerTableBodyWeekCell component.

values
ComponentInstance<DatePickerTableBodyWeekCellProps, DatePickerTableBodyWeekCellState, DatePickerTableBodyWeekCellExposes>

DatePickerFooter#

Props#

Defines valid properties in DatePickerFooter component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerFooterInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerFooterInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerFooterPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerFooterInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerFooter component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerFooter component.

nametypedefaultdescription
rootDatePickerFooterPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerFooter component.

values
ComponentInstance<DatePickerFooterProps, DatePickerFooterState, DatePickerFooterExposes>

DatePickerButtonbar#

Props#

Defines valid properties in DatePickerButtonbar component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerButtonbarInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerButtonbarInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerButtonbarPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerButtonbarInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerButtonbar component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerButtonbar component.

nametypedefaultdescription
rootDatePickerButtonbarPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerButtonbar component.

values
ComponentInstance<DatePickerButtonbarProps, DatePickerButtonbarState, DatePickerButtonbarExposes>

DatePickerToday#

Props#

Defines valid properties in DatePickerToday component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTodayInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTodayInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTodayPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTodayInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerToday component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerToday component.

nametypedefaultdescription
rootDatePickerTodayPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerToday component.

values
ComponentInstance<DatePickerTodayProps, DatePickerTodayState, DatePickerTodayExposes>

DatePickerClear#

Props#

Defines valid properties in DatePickerClear component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerClearInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerClearInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerClearPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerClearInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerClear component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerClear component.

nametypedefaultdescription
rootDatePickerClearPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerClear component.

values
ComponentInstance<DatePickerClearProps, DatePickerClearState, DatePickerClearExposes>

DatePickerTime#

Props#

Defines valid properties in DatePickerTime component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerTimeInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerTimeInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerTimePassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerTimeInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerTime component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerTime component.

nametypedefaultdescription
rootDatePickerTimePassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerTime component.

values
ComponentInstance<DatePickerTimeProps, DatePickerTimeState, DatePickerTimeExposes>

DatePickerPicker#

Props#

Defines valid properties in DatePickerPicker component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerPickerInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerPickerInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerPickerPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerPickerInstance) => ReactNode)
null
The children to render.
type"hour" | "minute" | "second" | "ampm"
null
Type of the picker.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerPicker component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerPicker component.

nametypedefaultdescription
rootDatePickerPickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerPicker component.

values
ComponentInstance<DatePickerPickerProps, DatePickerPickerState, DatePickerPickerExposes>

DatePickerIncrement#

Props#

Defines valid properties in DatePickerIncrement component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerIncrementInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerIncrementInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerIncrementPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerIncrementInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerIncrement component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerIncrement component.

nametypedefaultdescription
rootDatePickerIncrementPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.
incrementIconDatePickerIncrementPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the increment icon's DOM element.

Types#

Instance of DatePickerIncrement component.

values
ComponentInstance<DatePickerIncrementProps, DatePickerIncrementState, DatePickerIncrementExposes>

DatePickerHour#

Props#

Defines valid properties in DatePickerHour component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerHourInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerHourInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerHourPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerHourInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerHour component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerHour component.

nametypedefaultdescription
rootDatePickerHourPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerHour component.

values
ComponentInstance<DatePickerHourProps, DatePickerHourState, DatePickerHourExposes>

DatePickerDecrement#

Props#

Defines valid properties in DatePickerDecrement component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerDecrementInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerDecrementInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerDecrementPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerDecrementInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerDecrement component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerDecrement component.

nametypedefaultdescription
rootDatePickerDecrementPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.
decrementIconDatePickerDecrementPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the decrement icon's DOM element.

Types#

Instance of DatePickerDecrement component.

values
ComponentInstance<DatePickerDecrementProps, DatePickerDecrementState, DatePickerDecrementExposes>

DatePickerSeparatorContainer#

Props#

Defines valid properties in DatePickerSeparatorContainer component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerSeparatorContainerInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerSeparatorContainerInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerSeparatorContainerPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerSeparatorContainerInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerSeparatorContainer component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerSeparatorContainer component.

nametypedefaultdescription
rootDatePickerSeparatorContainerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerSeparatorContainer component.

values
ComponentInstance<DatePickerSeparatorContainerProps, DatePickerSeparatorContainerState, DatePickerSeparatorContainerExposes>

DatePickerSeparator#

Props#

Defines valid properties in DatePickerSeparator component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerSeparatorInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerSeparatorInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerSeparatorPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerSeparatorInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerSeparator component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerSeparator component.

nametypedefaultdescription
rootDatePickerSeparatorPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerSeparator component.

values
ComponentInstance<DatePickerSeparatorProps, DatePickerSeparatorState, DatePickerSeparatorExposes>

DatePickerMinute#

Props#

Defines valid properties in DatePickerMinute component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerMinuteInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerMinuteInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerMinutePassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerMinuteInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerMinute component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerMinute component.

nametypedefaultdescription
rootDatePickerMinutePassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerMinute component.

values
ComponentInstance<DatePickerMinuteProps, DatePickerMinuteState, DatePickerMinuteExposes>

DatePickerSecond#

Props#

Defines valid properties in DatePickerSecond component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerSecondInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerSecondInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerSecondPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerSecondInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerSecond component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerSecond component.

nametypedefaultdescription
rootDatePickerSecondPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerSecond component.

values
ComponentInstance<DatePickerSecondProps, DatePickerSecondState, DatePickerSecondExposes>

DatePickerAmPm#

Props#

Defines valid properties in DatePickerAmPm component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DatePickerAmPmInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DatePickerAmPmInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DatePickerAmPmPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DatePickerAmPmInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DatePickerAmPm component.

nametypedefaultdescription
datepickerDatePickerInstance
null
Instance of the DatePicker component.

Interfaces#

Defines passthrough(pt) options of DatePickerAmPm component.

nametypedefaultdescription
rootDatePickerAmPmPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DatePickerAmPm component.

values
ComponentInstance<DatePickerAmPmProps, DatePickerAmPmState, DatePickerAmPmExposes>

useDatePicker#

Props#

Defines valid properties in useDatePicker.

nametypedefaultdescription
defaultValuestring | string[] | Date | Date[]
null
The default value for the input when not controlled by `modelValue` .
valuestring | string[] | Date | Date[]
null
Value of the component.
namestring
null
The name attribute for the element, typically used in form submissions.
selectionMode"multiple" | "range" | "single"
single
Defines the quantity of the selection.
dateFormatstring
null
Format of the date. Defaults to PrimeVue Locale configuration.
updateModelType"string" | "date"
date
Type of the value to write back to modelValue.
selectOtherMonthsboolean
false
Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.
showIconboolean
false
When enabled, displays a button with icon next to input.
iconstring
null
Icon of the datepicker button.
prevIconstring
null
Icon to show in the previous button.
nextIconstring
null
Icon to show in the next button.
incrementIconstring
null
Icon to show in each of the increment buttons.
decrementIconstring
null
Icon to show in each of the decrement buttons.
numberOfMonthsnumber
1
Number of months to display.
breakpointstring
769px
The breakpoint to define the maximum width boundary for datepicker panel.
view"date" | "month" | "year"
date
Type of view to display.
minDateDate
null
The minimum selectable date.
maxDateDate
null
The maximum selectable date.
disabledDatesDate[]
null
Array with dates to disable.
disabledDaysnumber[]
null
Array with disabled weekday numbers.
maxDateCountnumber
null
Maximum number of selectable dates in multiple mode.
showOnFocusboolean
true
When disabled, datepicker will not be visible with input focus.
autoZIndexboolean
true
Whether to automatically manage layering.
baseZIndexnumber
0
Base zIndex value to use in layering.
showButtonBarboolean
false
Whether to display today and clear buttons at the footer.
shortYearCutoffstring
+10
The cutoff year for determining the century for a date.
showTimeboolean
false
Whether to display timepicker.
timeOnlyboolean
false
Whether to display timepicker only.
hourFormat"12" | "24"
24
Specifies hour format.
stepHournumber
1
Hours to change per step.
stepMinutenumber
1
Minutes to change per step.
stepSecondnumber
1
Seconds to change per step.
showSecondsboolean
false
Whether to show the seconds in time picker.
hideOnDateTimeSelectboolean
false
Whether to hide the overlay on date selection when showTime is enabled.
hideOnRangeSelectionboolean
false
Whether to hide the overlay on date selection is completed when selectionMode is range.
timeSeparatorstring
:
Separator of time selector.
manualInputboolean
true
Whether to allow entering the date manually via typing.
showClearboolean
false
When enabled, a clear icon is displayed to clear the value.
size"small" | "large"
null
Defines the size of the component.
invalidboolean
false
When present, it specifies that the component should have invalid state style.
disabledboolean
false
When present, it specifies that the component should be disabled.
variant"outlined" | "filled"
null
Specifies the input variant of the component.
readonlyboolean
false
When present, it specifies that an input field is read-only.
placeholderstring
null
Placeholder text for the input.
requiredboolean
null
When present, it specifies that the component is a required field.
appendToHTMLElement | "body" | "self"
body
A valid query selector or an HTMLElement to specify where the overlay gets attached.
fluidboolean
null
Spans 100% width of the container when enabled.
ariaLabelledbystring
null
Establishes relationships between the component and label(s) where its value should be one or more element IDs.
ariaLabelstring
null
Establishes a string value that labels the component.
onValueChange(event: useDatePickerValueChangeEvent) => void
null
Callback to invoke when the value changes.
onDateSelect(event: useDatePickerDateSelectEvent) => void
null
Callback to invoke when a date is selected.
onMonthChange(event: useDatePickerMonthChangeEvent) => void
null
Callback to invoke when the month changes.
onYearChange(event: useDatePickerYearChangeEvent) => void
null
Callback to invoke when the year changes.
onTodayButtonClick(event: useDatePickerTodayButtonClickEvent) => void
null
Callback to invoke when the today button is clicked.
onClearButtonClick(event: MouseEvent<HTMLButtonElement>) => void
null
Callback to invoke when the clear button is clicked.
onInput(event: ChangeEvent<HTMLInputElement>) => void
null
Callback to invoke on input event.
onKeyDown(event: KeyboardEvent<HTMLButtonElement | HTMLInputElement>) => void
null
Callback to invoke on keydown event.
onFocus(event: FocusEvent<HTMLInputElement>) => void
null
Callback to invoke on focus event.
onBlur(event: useDatePickerBlurEvent) => void
null
Callback to invoke on blur event.

State#

Defines valid state in useDatePicker.

nametypedefaultdescription
rawValuestring | string[] | Date | Date[]
null
The current raw value of the datepicker (unformatted).
overlayVisibleboolean
null
Whether the overlay is visible.
currentView"date" | "month" | "year"
null
Current view state information.
showClearIconboolean
null
Whether to show the clear icon.
hoveredDateuseDatePickerDateMeta
null
The date currently being hovered in range selection mode.

Exposes#

Defines the methods and properties exposed by useDatePicker.

nametypedefaultdescription
stateuseDatePickerState
null
State object containing the current raw value and view information.
inputRefRefObject<{ elementRef: RefObject<HTMLInputElement> }>
null
Reference to the input element.
nextButtonRefRefObject<{ elementRef: RefObject<HTMLButtonElement> }>
null
Reference to the next navigation button element.
prevButtonRefRefObject<{ elementRef: RefObject<HTMLButtonElement> }>
null
Reference to the previous navigation button element.
portalRefRefObject<{ containerRef: { current: { elementRef: RefObject<HTMLDivElement> } } }>
null
Reference to the portal element.
overlayRefRefObject<HTMLDivElement>
null
Reference to the overlay element.
inputFieldValuestring
null
Formatted value string for the input field.
weekHeaderLabelstring
null
Label text for the week header.
todayLabelstring
null
Label text for today button.
clearLabelstring
null
Label text for clear button.
weekDaysstring[]
null
Array of localized day names for the week.
monthsuseDatePickerMonthData[]
null
Array of month data objects containing dates and week numbers.
monthPickerValues{ value: string; selectable: boolean }[]
null
Array of month picker values.
yearPickerValues{ value: number; selectable: boolean }[]
null
Array of year picker values.
switchViewButtonDisabledboolean
null
Whether the switch view button is disabled.
formattedCurrentHourstring | number
null
Formatted current hour value for display.
formattedCurrentMinutestring | number
null
Formatted current minute value for display.
formattedCurrentSecondstring | number
null
Formatted current second value for display.
ampmLabelstring
null
AM/PM label for 12-hour format.
changeVisibleState(visible: boolean) => void
null
Sets the visibility state of the overlay.
getIndexedMonth(index?: number) => useDatePickerMonthData
null
Returns a specific month by index.
getYear() => number
null
Returns the current year.
getMonthName(index?: number) => string
null
Returns the name of the current month.
isRangeSelection() => boolean
null
Returns whether the selection mode is range.
isSelected(dateMeta: useDatePickerDateMeta) => boolean
null
Checks if a date is selected.
onPrevButtonClick(event: MouseEvent<HTMLButtonElement>) => void
null
Handles previous button click event.
onNextButtonClick(event: MouseEvent<HTMLButtonElement>) => void
null
Handles next button click event.
switchToMonthView(event: MouseEvent<HTMLButtonElement>) => void
null
Switches to month view.
switchToYearView(event: MouseEvent<HTMLButtonElement>) => void
null
Switches to year view.
onDateSelect(event: KeyboardEvent<HTMLSpanElement> | MouseEvent<HTMLSpanElement, MouseEvent>, dateMeta: useDatePickerDateMeta) => void
null
Handles date selection.
onMonthSelect(event: KeyboardEvent<HTMLSpanElement> | MouseEvent<HTMLSpanElement, MouseEvent>, index: number) => void
null
Handles month selection.
onYearSelect(event: KeyboardEvent<HTMLSpanElement> | MouseEvent<HTMLSpanElement, MouseEvent>, year: { value: number }) => void
null
Handles year selection.
onDateCellKeydown(event: KeyboardEvent<HTMLSpanElement>, date: useDatePickerDateMeta, groupIndex: number) => void
null
Handles date cell keydown event.
onMonthCellKeydown(event: KeyboardEvent<HTMLSpanElement>, index: number) => void
null
Handles month cell keydown event.
onYearCellKeydown(event: KeyboardEvent<HTMLSpanElement>, year: { value: number }) => void
null
Handles year cell keydown event.
onButtonClick() => void
null
Handles button click event.
onTimePickerElementMouseDown(event: MouseEvent<HTMLButtonElement>, type: number, direction: number) => void
null
Handles time picker element mouse down event.
onTimePickerElementMouseUp(event: KeyboardEvent<HTMLButtonElement> | MouseEvent<HTMLButtonElement, MouseEvent>) => void
null
Handles time picker element mouse up event.
onTimePickerElementMouseLeave() => void
null
Handles time picker element mouse leave event.
onContainerButtonKeydown(event: KeyboardEvent<HTMLButtonElement>) => void
null
Handles container button keydown event.
onTimePickerElementKeyDown(event: KeyboardEvent<HTMLButtonElement>, type: number, direction: number) => void
null
Handles time picker element keydown event.
onTimePickerElementKeyUp(event: KeyboardEvent<HTMLButtonElement>) => void
null
Handles time picker element keyup event.
toggleAMPM(event: MouseEvent<HTMLButtonElement>) => void
null
Toggles AM/PM.
onTodayButtonClick(event: MouseEvent<HTMLButtonElement>) => void
null
Handles today button click event.
onClearButtonClick(event: MouseEvent<HTMLButtonElement>) => void
null
Handles clear button click event.
onClearClick() => void
null
Handles clear click event.
onInput(event: ChangeEvent<HTMLInputElement>) => void
null
Handles input event.
onInputClick() => void
null
Handles input click event.
onInputKeyDown(event: KeyboardEvent<HTMLInputElement>) => void
null
Handles input keydown event.
onInputFocus(event: FocusEvent<HTMLInputElement>) => void
null
Handles input focus event.
onInputBlur(event: FocusEvent<HTMLInputElement>) => void
null
Handles input blur event.
onOverlayEnter() => void
null
Handles overlay enter event.
parseValue(text: string) => string | string[] | Date | Date[]
null
Parses a string value to date picker value.
isDateEquals(value: string | Date, dateMeta: useDatePickerDateMeta) => boolean
null
Checks if two dates are equal.
isMonthSelected(month: number) => boolean
null
Checks if a month is selected.
isYearSelected(year: number) => boolean
null
Checks if a year is selected.
isInHoverRange(dateMeta: useDatePickerDateMeta) => boolean
null
Checks if a date is in the hover range during range selection.
onDateCellMouseEnter(dateMeta: useDatePickerDateMeta) => void
null
Handles date cell mouse enter event.

Events#

Event fired when the datepicker's value changes.

nametypedescription
valuestring | string[] | Date | Date[]The value of the datepicker.

Event fired when a date is selected.

nametypedescription
valuestring | string[] | Date | Date[]The selected date value.

Event fired when the month changes.

nametypedescription
monthnumberThe month number (1-12).
yearnumberThe year.

Event fired when the year changes.

nametypedescription
monthnumberThe month number (0-11).
yearnumberThe year.

Event fired when the today button is clicked.

nametypedescription
originalEventMouseEvent<HTMLButtonElement>Original browser event.
dateDateThe current date.

Event fired when input blur occurs.

nametypedescription
originalEventFocusEvent<HTMLInputElement>Original browser event.
valuestringThe input value.

Types#

Instance of useDatePicker headless.

values
HeadlessInstance<useDatePickerProps, useDatePickerState, useDatePickerExposes>