Skip to content

KCountdown

Countdown component, support to add other components control countdown.

Install

bash
pnpm add @ikun-ui/countdown
bash
yarn add @ikun-ui/countdown
bash
npm install @ikun-ui/countdown

Basic usage

Countdown Props

NameTypeDefaultDescription
formatstring-Formatting the countdown display.
valuenumber0Target time.
prefixstring-Sets the prefix of a countdown.
suffixstring-Sets the suffix of a countdown.
titlestring-Countdown titles
valueStylestring-Styles countdown values
clsstring-Additional class for component
attrsany{}Additional attributes

Countdown Events

NameDescriptionType
changeTime difference change event.(vaue: number)=> void
finishCountdown end event.()=> void

Countdown Slots

NameDescription
prefixCountdown prefix.
titleCountdown titles.
suffixSuffixes forcountdown values.

MIT Licensed