All components

Date Input

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

Start date

Variants

Start date
outline
Start date
subtle
Start date
flushed

Sizes

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

Controlled

onValueChange fires with an ISO 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
Value: incomplete

Locale order

Segment order and separators follow the locale: German shows day, month, year separated by dots.

Startdatum

Install

Source

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