
Security News
/Research
npm Phishing Email Targets Developers with Typosquatted Domain
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
vue3-analog-clock
Advanced tools
A simple analog clock component for Vue 3.
This package provides a Vue 3 component to display an analog clock. It's lightweight, customizable, and easy to integrate into your Vue 3 projects.
npm install vue3-analog-clock
or go to npm package link
import { createApp } from "vue";
import App from "./App.vue";
import AnalogClock from "vue3-analog-clock";
import "vue3-analog-clock/dist/style.css";
const app = createApp(App);
app.use(AnalogClock);
app.mount("#app");
<template>
<div>
<AnalogClock />
</div>
</template>
Default Analog Clock
Customize Analog Clock
You can customize the appearance of the analog clock component using the following props:
watchFaceBackground
: Background color of the clock face. Default: #f9f9f9
.watchDigitsColor
: Color of the clock digits. Default: #000000
.watchDigitsMinuteMarksColor
: Color of the minute marks on the clock face. Default: #929394
.watchHoursHand
: Color of the hour hand. Default: #232425
.watchMinutesHand
: Color of the minute hand. Default: #343536
.watchSecondsHand
: Color of the seconds hand. Default: #c00
.To customize the clock colors, simply pass the desired color values as props when using the component in your Vue templates:
<template>
<div>
<AnalogClock
watchFaceBackground="#673F69"
watchDigitsColor="#FFFFFF"
watchDigitsMinuteMarksColor="#FFFFFF"
watchHoursHand="#FFAF45"
watchMinutesHand="#FB6D48"
watchSecondsHand="#E72929"
/>
</div>
</template>
Vue, Vue 3, Analog Clock, Clock Component, Vue Component
This package is licensed under the MIT License
FAQs
A simple analog clock component for Vue 3
The npm package vue3-analog-clock receives a total of 9 weekly downloads. As such, vue3-analog-clock popularity was classified as not popular.
We found that vue3-analog-clock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.