Examples

Date and time selection

Preview
Example.tsx
import { CalendarDateTime, DateTimePicker } from '@reactloom/dates';

export default function Example() {
  return <DateTimePicker label="Release window" defaultValue={new CalendarDateTime(2026, 11, 25, 14, 0)} />;
}

API reference

DateTimePicker props
PropTypeDefault
value · defaultValue
Controlled or initial CalendarDateTime or ZonedDateTime.
DateValue | null—
onValueChange
Called when date or time changes.
(value: DateValue | null) => void—
granularity
Smallest editable time unit.
'hour' | 'minute' | 'second''minute'
minValue · maxValue
Restrict selectable dates and times.
DateValue—

Keyboard interaction

Keyboard interactions
KeyAction
Alt + ArrowDownOpen the calendar and time popover
Arrow keysNavigate calendar days or adjust segments

Usage guidelines

Do

  • Use CalendarDateTime or ZonedDateTime for default values.

Don’t

  • Do not use DateTimePicker when only a calendar date is needed; use DatePicker instead.