vue-digital-clock

A Vue digital clock component, for use out the box
5,068 39
Install
npm install vue-digital-clock
Latest Version:2.0.0
Vue:2
Last Updated:Oct 29, 2025
Links: GitHub  ·  npm
Maintainer: eddyerburgh

vue-digital-clock

A digital clock component built with Vue.js

Installation

With NPM:

npm install --save vue-digital-clock

With Yarn

yarn add vue-digital-clock

And import it into your project

import DigitalClock from "vue-digital-clock";

Props

Prop Type Usage
blink Boolean Set as true to have the colon blink with the seconds
displaySeconds Boolean Set as true to display seconds
twelveHour Boolean Set as true to display times with AM/PM

Example

<template>
  <digital-clock :blink="true" />
</template>

<script>
import DigitalClock from "vue-digital-clock";

export default {
  components: {
    DigitalClock
  }
};
</script>

Screenshot

vue-digital-clock screenshot

Version History

Version Released Vue License
2.0.0 ^2.x
1.5.1 ^2.1.0
1.5.0 ^2.1.0
1.4.0 ^2.1.0
1.3.1 ^2.1.0