Skip to content

eddyerburgh/vue-digital-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Clock from 'vue-digital-clock'

Props

Prop Type Usage
blink Boolean Set as true to have the semi colon blink with the seconds
displaySeconds Boolean Set as true to display seconds

Example

<template>
  <Clock :blink="true" />
</template>

<script>
import Clock from 'vue-digital-clock'

export default {
  name: 'app',
  components: {
    Clock,
  },
}
</script>

Screenshot

vue-digital-clock screenshot