Focus Chronometer
ProNewStart, 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
| Prop | Type | Default |
|---|---|---|
| seconds* | numberLength of each focus interval in seconds. Changing this starts a fresh interval. | — |
| label | stringTitle displayed above the dial. | "Focus session" |
| onComplete | () => voidCalled once when a running interval finishes. | — |
Accessibility
- Controls have text labels. The timer announces completion once and exposes remaining time on demand.