DDS/Components/TimePicker

TimePicker

Form

Time picker with 12h or 24h format, optional seconds.

Props

PropTypeDefaultDescription
modelValuestringundefinedHH:MM or HH:MM:SS value (v-model).
format"12" | "24""24"Display format.
showSecondsbooleanfalseShow the seconds input.
disabledbooleanfalseDisable the component.

Examples

Time selection
vue
<script setup>
const time = ref('09:30')
</script>
<template>
  <DsTimePicker v-model="time" format="24" />
  <!-- 12h format with seconds -->
  <DsTimePicker v-model="time" format="12" :show-seconds="true" />
</template>

Skeleton

Use DsTimePickerSkeleton as a loading placeholder while content is being fetched.

Default
vue
<DsTimePickerSkeleton />

Accessibility

  • Each hour/minute/second spinner is a native number input.
  • Escape or outside click closes the picker.