Utility
AI
Terminal
stopwatch-demo
No opentui live preview is registered for this example yet.
Installation
pnpm dlx shadcn@latest add @termcn/stopwatch
Usage
import { Stopwatch } from "@/components/ui/stopwatch";<Stopwatch autoStart showLaps color="green" />API Reference
Stopwatch
| Prop | Type | Default |
|---|---|---|
autoStart | boolean | false |
color | string | undefined |
showLaps | boolean | true |