Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Calendar
  2. Time Picker
  3. API and Development

Time Picker

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
TimeInput from @prepared911/ui/time-input collects a wall-clock time. A range is the same component with range, not a second picker. The value is an HH:mm string (or HH:mm:ss). Segments follow Intl, and a popover lists times every step minutes.
Props
NameTypeDescription
valuestringHH:mm wall-clock value. A range uses the start and end values together.
onValueChange(value, details) => voidNext value. A range reports when both ends are set, unless allowPartialRange is set.
rangebooleanOne field, one popover, two lists. There is no maxRange hour clamp.
min / maxstringBounds for each end. An end before the start crosses midnight.
stepnumberMinutes between list rows.
hourCycle24-hour by default. Opt into 12-hour or 11-hour.
timeZonestringZone name. Convert instants with timeOfInstant and instantOfTime.
labelLocalizedMessageAccessible name. There is no hidden-label flag that drops the name.
Import
Example
A range uses the same component:
Previous
Time Picker / Usage
Next
Time Picker / Accessibility
On this page
Props
Import
Example