Time field

A styled native time input.

With seconds

Disabled

Select

API reference

Inputs

PropTypeDefaultDescription
namestring''Native `name` attribute for the input.
idstring''Native `id` attribute for the input.
minstring''Earliest allowed time (`HH:mm`) in `input` mode.
maxstring''Latest allowed time (`HH:mm`) in `input` mode.
secondsbooleanfalseWhether to include seconds in `input` mode.
modeTimeFieldMode'input'`select` renders hour + minute dropdowns instead of a native time input.
minuteStepnumber5Minute step used in `select` mode.
ariaLabelstring''Accessible label for the field.
localestringBCP 47 locale driving `select` mode's clock and digits. Defaults to the app's `LOCALE_ID`. It has no effect in `input` mode — see the class docs.
hourCycleTimeFieldHourCycleForce a clock instead of the locale's own — `h12` gives 1–12 with AM/PM, `h23` gives 0–23.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
valuestring''Selected time as `HH:mm`. Two-way bindable with `[(value)]`.
disabledbooleanfalseWhether the field is disabled. Two-way bindable with `[(disabled)]`.

Types

TimeFieldHourCycle — Which hours the clock runs through. `h12`/`h11` add a day period (AM/PM), `h23`/`h24` do not.

"h11" | "h12" | "h23" | "h24"

TimeFieldMode — How the time field renders: native input or hour/minute selects.

"input" | "select"

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.