Skip to content
Star

TimePicker

A scrollable time picker with 24-hour and 12-hour (AM/PM) format support. Opens a popover with hour and minute columns, scrolls to the selected value automatically, and closes on outside click. The v-model value is always stored in HH:mm (24h) format regardless of the display format.

Basic (24h)

Demo
09:30

Value (HH:mm): 09:30

12-Hour Format (AM/PM)

Use format="12h" for the US/common format. The display shows 09:30 AM but the v-model value remains in HH:mm (24h) internally.

12h Format
02:45 PM

Value (HH:mm 24h): 14:45

Disabled State

Disabled
14:45

Without Label

No Label
09:30

API Reference

PropTypeDefaultDescription
modelValue
string | nullValor del tiempo en formato HH:mm (24h) — siempre en 24h internamente
label
stringEtiqueta superior del input
required
booleanSi el campo es obligatorio (muestra asterisco rojo)
disabled
booleanDeshabilita el input
placeholder
stringPlaceholder opcional
format
"24h" | "12h"Formato de visualización: '24h' (default) o '12h' (AM/PM)

Accessibility

  • The trigger element is keyboard-accessible via click.
  • Closes automatically on outside click via @vueuse/core onClickOutside.
  • Popover uses z-50 so it always renders above other content.
  • Label is rendered via PxLabel with proper for/id association.

Built with VitePress