<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.
Import element behavior in the browser. The wrapper supports server rendering;
the owned segments resolve the locale when the element connects.
<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.Import element behavior in the browser. The wrapper supports server rendering; the owned segments resolve the locale when the element connects.