@vuecs/countdown

A package containing a countdown component.
12,377 4
Install
npm install @vuecs/countdown
Latest Version:2.1.1
Vue:3
License:Apache-2.0
Last Updated:Oct 16, 2026
Links: GitHub  ·  npm
Maintainer: tada5hi

@vuecs/countdown

npm version CI license

<VCCountdown> — a precise countdown timer for Vue 3, part of vuecs. Renderless by default: you get a fully-typed scoped slot with every time unit and build whatever display you want around it.

✨ What's inside

  • ⏱️ Typed scoped slot — days / hours / minutes / seconds / milliseconds plus totalDays … totalMilliseconds and isCounting, all exported as CountdownSlotProps.
  • ▶️ Lifecycle events — start, progress, abort, end (opt out via :emit-events="false").
  • 🚀 Auto-start — begins on mount by default (:auto-start); restart by re-binding :time.
  • 🎚️ Tunable tick — :interval (default 1000 ms) and an injectable :now function for deterministic tests.
  • 🏷️ Polymorphic + themeable — :as to change the host element / component (string tag or RouterLink / NuxtLink); theme via the countdown element key.

📦 Installation

npm install @vuecs/countdown

⚡ Usage

<VCCountdown :time="2 * 60 * 60 * 1000" @end="onExpired">
    <template #default="{ hours, minutes, seconds }">
        Offer expires in {{ hours }}h {{ minutes }}m {{ seconds }}s
    </template>
</VCCountdown>

📚 Documentation

Full reference + live demo: vuecs.dev/components/countdown

License

Made with 💚

Published under Apache 2.0 License.

Related Packages

@vue-layout/countdown

A package containing a countdown component.

2,864 4
vue2-flip-countdown

A simple flip countdown timer component for Vue 2.x

64,576 228
@dmaksimovic/vue-countdown

VueJS 2.0 countdown component

1,409 12
@smithalan2/vue-countdown

A simple countdown timer component for Vue 3 written using the composition API.

2,070 3
vue-awesome-countdown

Countdown plug-in with high performance and high accuracy for Vue 2.5.0+ and Vue...

95,975 191

Version History

Version Released License
2.1.1 Apache-2.0
2.1.0 Apache-2.0
2.0.8 Apache-2.0
2.0.7 Apache-2.0
2.0.6 Apache-2.0