Skip to content

Time picker

te-time-picker binds a timestamp in milliseconds, like Date.prototype.valueOf().

12 and 24 hour

vue
<te-time-picker v-model="time" />
<te-time-picker v-model="time" :ampm="false" />

Props

PropTypeDefaultDescription
modelValuenumber | nullnullMilliseconds since the epoch. Supports v-model.
ampmbooleantrue12-hour clock with an AM/PM selector.
disabledbooleanfalseDisables the picker.

Events

EventPayloadDescription
update:modelValuenumberThe time changed.

Released under the MIT License.