Skip to content
Skip to Content
ComposerKit
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

PackagePrimary exportsWhen to use it
@composerkit/date-pickerDatePicker, DateRangePicker, SelectControl, TransitionGroupCompact chat filters, form controls, and dropdown pickers paired with @composerkit/select.
@composerkit/date-time-pickerDateFieldPicker, TimePicker, DateTimePicker, DateRangePicker, TimeRangePicker, DateTimeRangePicker, DateField, TimeField, DateTimeField, DateCalendar, TimeClock, DigitalClock, MultiSectionDigitalClock, PickersProviderKeyboard 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 JavaScript Date values in the browser's Gregorian calendar and local time zone with en-US text.
  • createTemporalAdapter({ calendar }): works with Temporal.ZonedDateTime values in any browser-supported calendar (such as buddhist or hebrew) and supports explicit timezone conversion. Check availability at runtime with temporalAvailable().
  • Localization: pass locale, localeText (ships English and frFRPickerText), and weekStart to PickersProvider.

Keyboard section editing and ranges

  • DateField, TimeField, DateTimeField, and their *RangeField counterparts edit individual format sections (YYYY, MM, DD, HH, hh, mm, ss, a).
  • Typing digits auto-advances when a section is complete. ArrowUp/ArrowDown step by 1, PageUp/PageDown step by 5, Home/End jump to limits, Backspace clears a section, and ArrowLeft/ArrowRight move between sections.
  • Range fields support inputs="single" (one input with dateSeparator) or inputs="multi" (two inputs publishing one pair). Pasting "2026-01-05 to 2026-01-09" splits automatically on dateSeparator.
  • In DateRangePicker, dragging either endpoint moves or swaps the range unless disableDragEditing, disabled, or readOnly is 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" (every timeStep minutes), or "analog" (TimeClock dial).
  • Validation: minDate, maxDate, disablePast, disableFuture, shouldDisableDate, minTime, maxTime, and minutesStep disable invalid calendar days/times and pass typed error names (invalidDate, invalidRange, etc.) in onChange.

Limits

  • nativeDateAdapter uses the Gregorian calendar and local time zone only; explicit timezone props require createTemporalAdapter.
  • No adapters are bundled for date-fns, Day.js, Luxon, or Moment; implement the DateAdapter interface to integrate another library.

Continue to the Date picker reference or Date and time picker reference.

On this page