Reference

Props Reference

Complete TypeScript prop definitions for the DatePicker component.

DatePicker Props

Complete prop options for <DatePicker />.


Core Configuration

PropTypeDefaultDescription
mode'single' | 'range' | 'multiple' | 'month' | 'year' | 'datetime''single'Controls selection logic, bounds, and rendered views.
valueDate | DateRange | Date[] | nullundefinedControlled value corresponding to the current mode.
defaultValueDate | DateRange | Date[] | nullundefinedUncontrolled initial value on mount.
onChange(val: any) => voidundefinedFires whenever date or time selection changes.
inlinebooleanautoForces inline calendar panel without trigger input.
placeholderstring'Select date…'Placeholder text inside trigger.
labelstringundefinedDescriptive label above the trigger.
allowClearbooleantrueShows quick clear button.
size'sm' | 'md' | 'lg''md'Trigger height and font sizing.
disabledbooleanfalseDisables interactions and styles.

Calendar & Display

PropTypeDefaultDescription
numberOfMonthsnumber1Number of calendar months rendered side-by-side.
stackMonthsbooleanautoForces multi-month view to stack vertically.
weekStartsOn0 | 1 | 2 | 3 | 4 | 5 | 60First day of week (0=Sunday, 1=Monday).
showWeekNumbersbooleanfalseRenders ISO 8601 week number column.
renderDate(date: Date) => ReactNodeundefinedCustom cell render callback.

Time Picker

PropTypeDefaultDescription
showTimebooleanfalseEnables scrollable time selection column.
timeFormat'12' | '24''24'12h (AM/PM) or 24h display format.
minuteStepnumber1Minute granularity step (e.g. 5, 15).
showSecondsbooleanfalseDedicated 0–59 seconds selection column.
timePlacement'right' | 'bottom''right'Position of the time column.

Constraints & Localization

PropTypeDefaultDescription
minDateDateundefinedEarliest selectable date.
maxDateDateundefinedLatest selectable date.
disableFutureDatesbooleanfalseDisables dates strictly after today.
disablePastDatesbooleanfalseDisables dates strictly before today.
disabledDate(date: Date) => booleanundefinedCustom predicate for disabled dates.
localestring'en-US'BCP 47 language tag for native Intl formatting.
dir'ltr' | 'rtl' | 'auto''ltr'Layout directionality for RTL support.

On this page