<InputTime> — a segmented wall-clock time field. One boxed input (matching
the other inputs) with separate hour / minute / (12-hour) AM-PM sections that
behave as one control: each is a native text input — ↑/↓ steps with wrap,
←/→ crosses segments at caret boundaries, typing digits auto-advances, and
AM/PM accepts its locale text or a/p. Renders an <a-input-time> web
component that manages the segments, navigation, and form value (via
ElementInternals).
The clock and layout follow the locale (en-US → 12-hour, most others 24),
overridable with hour12. The value is a 24-hour "HH:mm" string; controlled
(value + onValueChange) or uncontrolled (defaultValue), submitting under
name.
Requires @antadesign/anta/elements (client-side only). Reads
navigator.language at render, so render client-side (not SSR-safe).
<InputTime>— a segmented wall-clock time field. One boxed input (matching the other inputs) with separate hour / minute / (12-hour) AM-PM sections that behave as one control: each is a native text input — ↑/↓ steps with wrap, ←/→ crosses segments at caret boundaries, typing digits auto-advances, and AM/PM accepts its locale text ora/p. Renders an<a-input-time>web component that manages the segments, navigation, and form value (viaElementInternals).The clock and layout follow the locale (
en-US→ 12-hour, most others 24), overridable withhour12. The value is a 24-hour"HH:mm"string; controlled (value+onValueChange) or uncontrolled (defaultValue), submitting undername.Requires
@antadesign/anta/elements(client-side only). Readsnavigator.languageat render, so render client-side (not SSR-safe).