Skip to content
Uxelith
Prov1.0.0Forms

Date Time Picker

One field for a date, a time or both that you can simply type into: it reads "tomorrow 3pm" or "dec 25 9:30", and the calendar and time wheels move to match.

Installs with Uxelith ProHow
Licence
Pro
Packages
2
Updated
5 Nov 2026
Live

Installation

Usage

example.tsx
"use client"

import * as React from "react"

import { DateTimePicker } from "@/components/date-time-picker"

export function Booking() {
  const [when, setWhen] = React.useState<string | null>(null)
  return <DateTimePicker label="Meeting time" name="when" value={when} onValueChange={setWhen} />
}

Props

PropTypeDefaultDescription
labelstring—Field label.
mode"datetime" | "date" | "time""datetime"What to pick. "time" is a Time Picker.
value / defaultValuestring | nullnullLocal text: 2026-12-25T09:30, 2026-12-25 or 09:30.
onValueChange(value: string | null) => void—Called when the value changes.
hourCycle12 | 2412Clock shown on the wheels and in text.
minuteStep1 | 5 | 10 | 15 | 305Gap between minutes on the wheel. Typing can set any minute.
weekStartsOn0 | 10First day of the week.
dateOrder"mdy" | "dmy""mdy"How to read 3/4/2027.
localestringvisitor'sMonth and weekday names.
namestring—Sends the value with a form.
disabledbooleanfalseTurn the field off.

Accessibility

  • A labelled text field; what was understood, or why it wasn't, is announced as you type.
  • Wheels are spin buttons: arrow keys, Home, End and Page keys work, and each announces its value.
  • Calendar days are buttons named with the full date.
  • Wheels jump instead of gliding under prefers-reduced-motion.

Changelog

  1. v1.0.0Latest

    First release.

More in Forms

All 12 in Forms
  • FormsFree

    Animated Input

    A text field whose label floats out of the way, with examples that take turns while it's empty, an error that shakes once, a tick for a valid value and sent text that drifts away.

  • FormsFree

    Color Picker

    A colour picker with a saturation area, hue and opacity sliders, hex, rgb, hsl and oklch input, swatches and the screen eyedropper, that checks the colour's WCAG contrast on your background and moves it to the nearest colour that passes in one click.

  • FormsPro

    Date Picker

    Single dates and ranges in a keyboard-first calendar, with one-tap presets ("Last 7 days"), months that slide the way you go, min/max, unavailable days and ISO strings for forms.