0.1.0 • Published 3 years ago

@tmaito/countdown v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Quick Start

Install

npm i @tmaito/countdown
// or
yarn add @tmaito/countdown

Use

import { Countdown } form '@tmaito/countdown'
// style
@import '@tmaito/countdown/dist/index.css'

Api

参数说明类型默认值
format格式化倒计时展示,参考 momentstringHH:mm:ss
prefix设置数值的前缀ReactNode-
suffix设置数值的后缀ReactNode-
value数值内容numbermoment-
onFinish倒计时完成时触发() => void-
mode可选值: cardstring-