Components/useCountdown

useCountdown

Countdown timer with start, pause, and reset controls.

Installation

Usage

API Reference

PropTypeDefaultDescription
countnumber—Current countdown value.
isRunningboolean—Whether the timer is active.
start() => void—Start or resume the countdown.
pause() => void—Pause the countdown.
reset() => void—Reset to the initial value.