A digital clock component built with Vue.js
With NPM:
npm install --save vue-digital-clockWith Yarn
yarn add vue-digital-clockAnd import it into your project
import DigitalClock from "vue-digital-clock";| 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 |
<template>
<digital-clock :blink="true" />
</template>
<script>
import DigitalClock from "vue-digital-clock";
export default {
components: {
DigitalClock
}
};
</script>