Skip to main content

Interface: UseCooldownOptions

Defined in: use-cooldown.ts:6

Options for useCooldown.

Properties​

autoStart?​

optional autoStart?: boolean

Defined in: use-cooldown.ts:8

Begin the countdown on mount instead of waiting for start. Default is false.


onComplete?​

optional onComplete?: () => void

Defined in: use-cooldown.ts:10

Called when a countdown reaches 0 on its own. Not called by reset.

Returns​

void