Back to library

Time input

Choose a single time or a start and end time.

Recommended API

Property or elementTypeExample initial valueDescription
Hour and minuteNumber fields09:00 draftEdit the time in 24-hour format inside the popover.
name and valueHTML attributestime-field · emptySubmit the confirmed time as HH:mm.

States

StateTriggerResult
editingActivate the field.Edit the draft and apply it to update the field.
dismissedPress Escape or click outside.The previous confirmed value is preserved.

Svelte implementation guidance

Open a time panel, enter hours and minutes in 24-hour format, then apply. Escape or an outside click cancels the edit.

Use the supplied example to integrate the picker. Keep the trigger accessible, preserve focus on dismissal, and verify keyboard and touch input.

CSS variables

VariableTypeDefaultDescription
--q-textcolor #28302aMain text and foreground color.
--q-mutedcolor #70776fColor for secondary text.
--q-font-sizelength 13pxBase size for the component text.
--q-accentcolor #344e41Accent for active controls, indicators and focus.
--q-surfacecolor #ffffffSurface for controls and cards.
--q-bordercolor #dce0d8Color for outlines and dividers.
--q-radiuslength 10pxBase corner radius.
--q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
--q-control-pxlength calc(var(--q-space) * 4)Horizontal padding for controls.
--q-control-pylength calc(var(--q-space) * 2.5)Vertical padding for controls.
--q-spacelength 4pxBase unit for gaps and padding.