Skip to Content
Selection & Dates@hacline/ui/date-input

DateInput

Edit dates segment by segment in locale-aware order.

Usage

Edit the year, month, or day segment with digits or arrow keys, or paste a complete date into any segment. Once all fields are filled, an ISO-formatted value is emitted.

ISO date: 2026-12-15

Locale Segment Order and Bounds

UK dates (en-GB) follow day, month, year order while keeping the submitted value in ISO format. Use min and max to constrain the valid expense date range.

Choose a date in December 2026.

Variants, Sizes & Clearable Addons

Customize appearance with variant ("default" / "filled"), size ("sm" / "md" / "lg"), leading prefix icons, clearable reset buttons, and granularity="minute" for date-and-time editing.

Parts

Pass a custom children render function when you need full segment layout control.

PartDescription
DateInputSegment
A segment, like the month: an input arrow keys step and digits fill, named by its unit. The text between segments renders as a span.

Props

Prop

Type

View UI SDK parts and state attributes.