All components

Date Input

Segmented date field with keyboard-editable month, day and year in locale order.

Start date
03182026

Variants

Start date
03182026
outline
Start date
03182026
subtle
Start date
03182026
flushed

Sizes

Start date
03182026
xs
Start date
03182026
sm
Start date
03182026
md
Start date
03182026
lg
Start date
03182026
xl

Controlled

onValueChange fires with a Date once every segment is filled, and with null when one is cleared. Tab or ArrowLeft/Right moves between segments, ArrowUp/Down steps the focused one, typed digits fill it and jump ahead, Backspace clears.

Due date
mmddyyyy
Value: incomplete

Locale order

Segment order and separators come from Intl.DateTimeFormat: German shows day, month, year separated by dots.

Startdatum
18032026

Install

Source

components/ui/base-ui/date-input.tsx