• Stars
    star
    656
  • Rank 68,675 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Countdown component for Vue.js.

vue-countdown

Coverage Status Downloads Version Gzip Size

Countdown component for Vue 3. For Vue 2, check out the v1 branch.

Main npm package files

dist/
├── vue-countdown.js         (UMD, default)
├── vue-countdown.min.js     (UMD, compressed)
├── vue-countdown.esm.js     (ECMAScript Module)
├── vue-countdown.esm.min.js (ECMAScript Module, compressed)
└── vue-countdown.d.ts       (TypeScript Declaration File)

Getting started

Installation

Using npm:

npm install vue@3 @chenfengyuan/vue-countdown@2

Using pnpm:

pnpm add vue@3 @chenfengyuan/vue-countdown@2

Using Yarn:

yarn add vue@3 @chenfengyuan/vue-countdown@2

Using CDN:

<script src="https://unpkg.com/vue@3"></script><!-- Vue.js is required -->
<script src="https://unpkg.com/@chenfengyuan/vue-countdown@2"></script>

Usage

import { createApp } from 'vue';
import VueCountdown from '@chenfengyuan/vue-countdown';

const app = createApp({});

app.component(VueCountdown.name, VueCountdown);
<vue-countdown :time="2 * 24 * 60 * 60 * 1000" v-slot="{ days, hours, minutes, seconds }">
  Time Remaining:{{ days }} days, {{ hours }} hours, {{ minutes }} minutes, {{ seconds }} seconds.
</vue-countdown>
<!-- <span>Time Remaining:1 days, 23 hours, 59 minutes, 59 seconds.</span> -->

Browser support

Same as Vue 3.

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT © Chen Fengyuan

More Repositories

1

cropperjs

JavaScript image cropper.
JavaScript
12,564
star
2

cropper

⚠️ [Deprecated] No longer maintained, please use https://github.com/fengyuanchen/jquery-cropper
JavaScript
7,759
star
3

viewerjs

JavaScript image viewer.
JavaScript
7,526
star
4

compressorjs

JavaScript image compressor.
JavaScript
4,917
star
5

distpicker

⚠️ [Deprecated] No longer maintained. A simple jQuery plugin for picking provinces, cities and districts of China. (中国 / 省市区 / 三级联动 / 地址选择器)
JavaScript
1,638
star
6

datepicker

⚠️ [Deprecated] No longer maintained. A simple jQuery datepicker plugin.
JavaScript
1,165
star
7

vue-qrcode

QR code component for Vue.js
TypeScript
1,023
star
8

viewer

⚠️ [Deprecated] No longer maintained, please use https://github.com/fengyuanchen/jquery-viewer
JavaScript
1,017
star
9

photo-editor

A simple photo editing application.
Vue
920
star
10

jquery-cropper

A jQuery plugin wrapper for Cropper.js.
JavaScript
679
star
11

jquery-viewer

A jQuery plugin wrapper for Viewer.js.
JavaScript
319
star
12

pickerjs

⚠️ [Deprecated] No longer maintained. JavaScript date time picker.
JavaScript
312
star
13

vue-barcode

Bar code component for Vue.js
JavaScript
193
star
14

vue-carousel

Carousel component for Vue.js.
Vue
187
star
15

vue-number-input

Number input component for Vue.js.
TypeScript
173
star
16

vue-feather

Feather component for Vue.js.
TypeScript
144
star
17

simpleui

A simple UI framework for building simple web projects.
CSS
58
star
18

markdown-to-vue-loader

Markdown to Vue component loader for Webpack.
JavaScript
38
star
19

vue-countly

Countly plugin for Vue.js.
JavaScript
11
star
20

load-scripts

Dynamic scripts loading for modern browsers.
JavaScript
10
star
21

create-banner

Create a banner from a package.json file.
JavaScript
7
star
22

postcss-header

Add a header to a file.
JavaScript
3
star