Time Input

A time-of-day input with separate, keyboard-editable Hour, Minute and optional Second segments, 12- or 24-hour display, and an optional clock popup.

Default

Each numeric segment is a role="spinbutton" text box: type digits, or use and to step and to move between segments. In 12-hour mode an AM/PM select follows the numbers, and 12 AM maps to 00:00 while 12 PM maps to 12:00.

Seconds, Minute Step and States

ShowSeconds adds a third segment, and MinuteStep sets the arrow-key increment and the minute options in the popup — typed minutes do not have to be multiples of it. ReadOnly keeps the segments focusable but blocks edits; Disabled also stops the value being posted.

Culture-Driven Format

Leave Format null and the culture decides: a lowercase h in the short time pattern gives 12-hour display, otherwise 24-hour. The culture also supplies the separator and the AM/PM designators.

Bounds, Validation and Clearing

MinTime and MaxTime are inclusive and must sit inside one day — overnight ranges are not supported. A partial or out-of-range entry stays visible, sets the value to null and adds the localized message "Enter a complete, valid time within the allowed range." to the EditContext. Call ClearAsync() through @ref to reset.