Components/useCountdown

useCountdown

Countdown timer with start, pause, and reset controls.

Installation

Usage

API Reference

PropTypeDefaultDescription
countnumberCurrent countdown value.
isRunningbooleanWhether the timer is active.
start() => voidStart or resume the countdown.
pause() => voidPause the countdown.
reset() => voidReset to the initial value.