Dates
DateTimePicker
Combined date and time picker with segmented typing, a calendar grid, and an inline time field.
import '@reactloom/dates/styles.css';
import { DateTimePicker } from '@reactloom/dates';Examples
Date and time selection
11
25
2026
2
00
PM
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
| Prop | Type | Default |
|---|---|---|
value · defaultValueControlled or initial CalendarDateTime or ZonedDateTime. | DateValue | null | — |
onValueChangeCalled when date or time changes. | (value: DateValue | null) => void | — |
granularitySmallest editable time unit. | 'hour' | 'minute' | 'second' | 'minute' |
minValue · maxValueRestrict selectable dates and times. | DateValue | — |
Keyboard interaction
| Key | Action |
|---|---|
| Alt + ArrowDown | Open the calendar and time popover |
| Arrow keys | Navigate 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.