Guides
Date and time pickers
Choose between @composerkit/date-picker and @composerkit/date-time-picker, configure adapters, ranges, validation, and Temporal time zones.
ComposerKit ships two complementary date packages with a clear non-overlapping boundary.
Which package to install
| Package | Primary exports | When to use it |
|---|---|---|
@composerkit/date-picker | DatePicker, DateRangePicker, SelectControl, TransitionGroup | Compact chat filters, form controls, and dropdown pickers paired with @composerkit/select. |
@composerkit/date-time-picker | DateFieldPicker, TimePicker, DateTimePicker, DateRangePicker, TimeRangePicker, DateTimeRangePicker, DateField, TimeField, DateTimeField, DateCalendar, TimeClock, DigitalClock, MultiSectionDigitalClock, PickersProvider | Keyboard section-edited fields, date-time and time-range inputs, analog/digital clocks, drag-editable ranges, custom locales, and Temporal calendars or time zones. |
Notice the export name distinction: @composerkit/date-picker keeps the DatePicker name, while @composerkit/date-time-picker exports its single-date picker as DateFieldPicker (DateFieldPickerProps) so both packages can coexist in one app without symbol collisions.
Adapters, locales, and Temporal time zones
Every component in @composerkit/date-time-picker reads and writes dates through a DateAdapter supplied by PickersProvider:
nativeDateAdapter(default): uses native JavaScriptDatevalues in the browser's Gregorian calendar and local time zone withen-UStext.createTemporalAdapter({ calendar }): works withTemporal.ZonedDateTimevalues in any browser-supported calendar (such asbuddhistorhebrew) and supports explicittimezoneconversion. Check availability at runtime withtemporalAvailable().- Localization: pass
locale,localeText(ships English andfrFRPickerText), andweekStarttoPickersProvider.
Keyboard section editing and ranges
DateField,TimeField,DateTimeField, and their*RangeFieldcounterparts edit individual format sections (YYYY,MM,DD,HH,hh,mm,ss,a).- Typing digits auto-advances when a section is complete.
ArrowUp/ArrowDownstep by 1,PageUp/PageDownstep by 5,Home/Endjump to limits,Backspaceclears a section, andArrowLeft/ArrowRightmove between sections. - Range fields support
inputs="single"(one input withdateSeparator) orinputs="multi"(two inputs publishing one pair). Pasting"2026-01-05 to 2026-01-09"splits automatically ondateSeparator. - In
DateRangePicker, dragging either endpoint moves or swaps the range unlessdisableDragEditing,disabled, orreadOnlyis set.
Popups, clocks, and validation
variant:"desktop"(popover),"mobile"(dialog with Cancel/OK), or"static"(inline). When omitted, fine pointers use desktop and coarse pointers use mobile.clock:"multi-section","digital"(everytimeStepminutes), or"analog"(TimeClockdial).- Validation:
minDate,maxDate,disablePast,disableFuture,shouldDisableDate,minTime,maxTime, andminutesStepdisable invalid calendar days/times and pass typed error names (invalidDate,invalidRange, etc.) inonChange.
Limits
nativeDateAdapteruses the Gregorian calendar and local time zone only; explicittimezoneprops requirecreateTemporalAdapter.- No adapters are bundled for
date-fns, Day.js, Luxon, or Moment; implement theDateAdapterinterface to integrate another library.
Continue to the Date picker reference or Date and time picker reference.