Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Focus Chronometer

ProNew

Start, pause and reset a focus interval on a dial with 60 engraved minute marks.

Installation

pnpm dlx shadcn@latest add @viewport/focus-chronometer

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
seconds*number

Length of each focus interval in seconds. Changing this starts a fresh interval.

—
labelstring

Title displayed above the dial.

"Focus session"
onComplete() => void

Called once when a running interval finishes.

—

Accessibility

  • Controls have text labels. The timer announces completion once and exposes remaining time on demand.