Time Picker

<qds-time-picker> edits a canonical local string through a stable native input. It uses the existing QDS field lifecycle, native forms, feedback and light/dark tokens. The native editor/picker follows browser and operating-system presentation; locale controls the separate Intl summary. No framework runtime or calendar dependency is loaded.

Import and basic use

<script type="module" src="/assets/components/time-picker/qds-time-picker.js"></script>
<qds-time-picker label="Review opening" name="opening" value="09:30" required></qds-time-picker>

Values and local-time policy

Public API

Member Contract
value, defaultValue Current/default canonical local string or empty
min, max Inclusive canonical string bounds
step Positive seconds number or 'any'; invalid values default to60
locale, formattedValue Intl summary locale and read-only formatted string; model unchanged
label, aria-label, aria-labelledby Native/external accessible naming
name, form Native form submission and external form ID
hint, errorText, invalid Help and application error state
required, readonly, disabled, size, validateOn Standard QDS field states and feedback timing
validity, validationMessage, willValidate Field state plus badInput/rangeUnderflow/rangeOverflow/stepMismatch
checkValidity(), reportValidity(), setCustomValidity(), focus() Standard validation and focus methods

Forms and events

Accessibility and themes

Examples and verification

The adjacent demo covers forms/reset, bounds/seconds, locale, readonly/disabled, custom validation, external forms and typed events. Native and generated tests cover local values, constraints, form state, keyboard behavior and light/dark themes. Run the repository verification gate for complete acceptance checks. Existing qds-date-picker remains date-only with its existing API.

Primary contracts: HTML time and HTML local date-time.