A shadcn-style timer component built with Ark UI primitives.

05
minutes
00
seconds

Installation

npx shadcn@latest add @ark-cn/timer

Usage

import * as Timer from "@/components/ui/timer"

Read exported parts in src/components/ui/timer.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Basic

00
days
00
hours
40
minutes
00
seconds

Countdown

05
minutes
00
seconds

Events

00
minutes
00
seconds

Ticks: 0

Interval

00
seconds
000
ms

Pomodoro

Work session

25
minutes
00
seconds

Completed cycles: 0

API reference

This component mirrors the upstream Ark UI primitive.

See the ARK UI documentation for the full API.