Stopwatch
display
Stopwatch: counts up from zero, displaying elapsed time
Terminal
$termuijs render stopwatch
Installation
$ bunx termuijs add stopwatch
Copies the source into src/components/stopwatch/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Stopwatch } from '@termuijs/widgets'ts
new Stopwatch(options: StopwatchOptions = {}, style: Partial<Style> = {})API Reference
Stopwatch
| Prop | Type | Required | Description |
|---|---|---|---|
interval | number | optional | Tick interval in milliseconds |