Skip to content

TimePicker

<ax-time-picker> is a segmented spinbutton time-of-day control, independent of any date model. It supports 12- or 24-hour display and optional seconds. It’s a Pro component and self-gates with a PRO watermark until licensed.

import { AxTimePickerComponent, type TimeValue } from '@axisui-ng/forms';
<ax-time-picker [(value)]="time" [use24]="false" [minuteStep]="5" />
<!-- with seconds, 24-hour -->
<ax-time-picker [(value)]="time" withSeconds />
time: TimeValue | null = { hours: 9, minutes: 30 };
InputTypeDefaultNotes
valuemodel<TimeValue | null>null{ hours, minutes, seconds? } (hours is always 0–23).
use24booleantruefalse shows a 12-hour view + AM/PM toggle.
withSecondsbooleanfalseShow a seconds segment.
minuteStepnumber1Increment step for the minutes field on ↑/↓.

Each segment is a role="spinbutton" with aria-valuenow / min / max / valuetext. ArrowUp / ArrowDown increment or decrement the focused field. In 12-hour mode an AM/PM toggle button is included (aria-label="Toggle AM/PM").

Pro component — see ProWatermark for how the watermark/gating works.

Interactive examples live in Storybook under Pro / TimePicker. Run pnpm storybook to explore them.