Prepared Docs

Prepared Docs

⌘K

    Loading navigation…

User

  1. Calendar
  2. Time Picker
  3. API and Development

Time Picker

API and Development

View Source
Submit Issue

The @prepared911/ui-calendar package exposes three related pieces:

  • TimePicker: Input with type="time", optional Label, and SVGAsset.Time tail icon by default.
  • TimeRangePicker: controlled wrapper around TimeRangeInputs with value: { start, end } as HH:mm strings and optional maxRange (hours).
  • TimeRangeInputs: low-level pair of start/end time fields with change handlers.

TimePicker props

NameTypeDescription
idstringRequired; associates Label and input.
valuestringHH:mm value for native time input.
onChange(value: string) => voidChange handler.
labelstringOverrides default translated “Time” label.
hideLabelbooleanHide label when an outer label exists.
disabledbooleanDisables the input.
tailIconSVGAssetOptional icon override.

TimeRangePicker props

NameTypeDescription
value{ start: string; end: string }Time strings.
onChange(value) => voidEmits updated range.
disabledbooleanDisables both fields.
maxRangenumberMaximum span in hours.

Import

Examples

Previous

Time Picker / Usage

Next

Time Picker / Accessibility

On this page

TimePicker props
TimeRangePicker props
Import
Examples