Skip to content
Skip to Content
ComposerKit
Components

Date and time picker

Adapter-backed date, time, and range pickers, keyboard section fields, calendars, and analog or digital clocks with Temporal timezone support.

@composerkit/date-time-picker exports DateFieldPicker, TimePicker, DateTimePicker, DateRangePicker, TimeRangePicker, DateTimeRangePicker, section-edited fields, DateCalendar, TimeClock, DigitalClock, and PickersProvider with nativeDateAdapter and createTemporalAdapter.

Need a compact popover date control paired with @composerkit/select instead? See Date picker and the Date and time pickers guide.

Loading the component gallery…

Install

shadcn registry

Set up once
npx shadcn@latest init --defaults --yesnpx shadcn registry add '@composerkit=https://composerkit.dynd.ai/r/{name}.json'
date-time-picker
npx shadcn add https://composerkit.dynd.ai/r/date-time-picker.json --overwrite
components.json
{+{+  "registries": {+    "@composerkit": "https://composerkit.dynd.ai/r/{name}.json"+  }+}}

Import

import { DateFieldPicker } from "@/components/date-time-picker/pickers";

Demo code

date-time-picker-examples.tsx
"use client";import type {  DateRangeValue,  PickerDate,} from "composerkit/components/date-time-picker/adapter";import { DateCalendar } from "composerkit/components/date-time-picker/date-calendar";import { PickersProvider } from "composerkit/components/date-time-picker/localization";import {  DateFieldPicker,  DateTimePicker,  TimePicker,} from "composerkit/components/date-time-picker/pickers";import { DateRangePicker } from "composerkit/components/date-time-picker/range-pickers";import { useState } from "react";import { AppearanceControl } from "@/components/appearance-control";const INITIAL_DATE = new Date(2026, 2, 18, 9, 30);const INITIAL_RANGE: DateRangeValue = [  new Date(2026, 2, 10),  new Date(2026, 2, 18),];export const DateTimePickerGalleryExample = () => {  const [date, setDate] = useState<PickerDate | null>(INITIAL_DATE);  const [time, setTime] = useState<PickerDate | null>(INITIAL_DATE);  const [dateTime, setDateTime] = useState<PickerDate | null>(INITIAL_DATE);  const [range, setRange] = useState<DateRangeValue>(INITIAL_RANGE);  return (    <PickersProvider>      <main className="gallery">        <header className="flex flex-wrap items-center justify-between gap-4">          <div>            <h1>Date &amp; time pickers</h1>            <p className="text-sm text-muted-foreground">              Segmented keyboard fields, calendars, clocks, and range pickers              with adapter and Temporal support.            </p>          </div>          <AppearanceControl id="date-time-picker-gallery-appearance" />        </header>        <section className="grid gap-6 md:grid-cols-2">          <div className="flex flex-col gap-4">            <h2>Field pickers</h2>            <DateFieldPicker              label="Release date"              onChange={(next) => {                setDate(next);              }}              value={date}            />            <TimePicker              label="Standup time"              onChange={(next) => {                setTime(next);              }}              value={time}            />            <DateTimePicker              label="Deployment window"              onChange={(next) => {                setDateTime(next);              }}              value={dateTime}            />            <DateRangePicker              label="Sprint dates"              onChange={(next) => {                setRange(next);              }}              value={range}            />          </div>          <div className="flex flex-col gap-2">            <h2>Inline calendar</h2>            <DateCalendar              onChange={(next) => {                setDate(next);              }}              value={date}            />          </div>        </section>      </main>    </PickersProvider>  );};

Props

CalendarHeaderProps

Prop

Type

DateRangeCalendarProps

Prop

Type

MonthGridProps

Prop

Type

ClockProps

Prop

Type

DigitalClockProps

Prop

Type

MultiSectionDigitalClockProps

Prop

Type

DateCalendarProps

Prop

Type

DateFieldProps

Prop

Type

DateRangeFieldProps

Prop

Type

DateTimeFieldProps

Prop

Type

DateTimeRangeFieldProps

Prop

Type

RangeFieldProps

Prop

Type

SectionFieldProps

Prop

Type

TimeFieldProps

Prop

Type

TimeRangeFieldProps

Prop

Type

ValueFieldProps

Prop

Type

PickersProviderProps

Prop

Type

PickerShellProps

Prop

Type

DateFieldPickerProps

Prop

Type

DateTimePickerProps

Prop

Type

TimePickerProps

Prop

Type

ValuePickerProps

Prop

Type

DateRangePickerProps

Prop

Type

DateTimeRangePickerProps

Prop

Type

RangePickerProps

Prop

Type

TimeRangePickerProps

Prop

Type

TimeClockProps

Prop

Type