Skip to content
GitHub

Timer

Countdown or stopwatch with controls.

00
days
00
hours
40
minutes
00
seconds

Installation

Usage

Examples

Countdown

Create a countdown by setting countdown to true and startMs to the initial duration.

05
minutes
00
seconds

Interval

Use the interval prop to control update frequency.

00
seconds
000
ms

Events

Listen to onTick and onComplete for timer events.

00
minutes
00
seconds
Ticks: 0

Pomodoro

Alternate between work and break sessions using onComplete.

Work Session

25
minutes
00
seconds
Completed cycles: 0

API Reference

Timer

TimerArea

TimerItem

TimerSeparator

TimerControl

TimerActionTrigger


For a complete list of props, see the Ark UI documentation.