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

TimeInput

Edit hours and minutes in locale-aware segmented time fields.

Usage

Type directly or use the arrow keys to adjust any segment. Setting hourCycle={24} displays 24-hour time while submitting a standard time string.

Form time: 14:30

12-Hour Clock and Seconds

Use granularity="second" to add a seconds segment and hourCycle={12} to display AM and PM.

Displays AM / PM in the UI and submits a 24-hour value.

Variants, Sizes & Clearable Addons

Customize appearance with variant ("default" / "filled"), size ("sm" / "md" / "lg"), leading prefix / trailing suffix addons, and a built-in clearable reset button.

UTC

Parts

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

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

Props

Prop

Type

View parts and state attributes in UI SDK.