TimeInput
Segmented time-of-day field — hour / minute (/ second) cells in one unified control, with per-segment Arrow-key stepping, digit auto-advance, and 12- or 24-hour display. The value is always a canonical 24-hour HH:MM string.
Playground
01 Examples
24-hour — the default
Value: 09:30
12-hour display
Value (24h): 14:15
With seconds
Value: 13:45:30
Range bounds
Value: 09:00
Sizes
Error state
Value: —
02 Date + Time
TimeInput closes the last gap in the form family: Calendar, DatePicker and DateRangePicker cover dates; TimeInput covers the time of day. It edits a time in isolation, so pair it with a DatePicker as two separate fields when you need a full timestamp — each keeps its
own canonical value (an ISO date from the picker, an HH:MM string from the time field),
which you combine at the boundary.
Date and time side by side
Date: 2026-08-15 · Time: 14:30
03 Customization
Reach for named presets registered on <BlocksProvider> for a
reusable look, or slotClasses to retouch individual parts — the slots are wrapper, label, field, icon, segment, separator, meridiem, and message. For a full ground-up restyle, set unstyled to drop every default
class and rebuild from the slots.
showIcon={false} hides the leading clock icon, and fullWidth stretches the field to fill its container instead of hugging its content.
04 Accessibility
- The field is a
role="group"named by itslabel(oraria-label). - Each segment — hour, minute, and (when present) second — carries its own
aria-label. - Arrow Up / Down steps the focused segment (with wrap); Arrow Left / Right moves between segments; typing digits auto-advances to the next segment.
- The AM/PM segment toggles by click, Arrow keys, or the A / P keys.
- Out-of-range values clamp to
min/maxwhen the field loses focus. - The error message is announced via
role="alert".
05 API Reference
No matching properties |