TimePicker
TimePicker
Section titled “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
Section titled “Import”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 };Inputs & models
Section titled “Inputs & models”| Input | Type | Default | Notes |
|---|---|---|---|
value | model<TimeValue | null> | null | { hours, minutes, seconds? } (hours is always 0–23). |
use24 | boolean | true | false shows a 12-hour view + AM/PM toggle. |
withSeconds | boolean | false | Show a seconds segment. |
minuteStep | number | 1 | Increment step for the minutes field on ↑/↓. |
Accessibility
Section titled “Accessibility”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").
License
Section titled “License”Pro component — see ProWatermark for how the watermark/gating works.
Storybook
Section titled “Storybook”Interactive examples live in Storybook under Pro / TimePicker. Run pnpm storybook to explore them.