Stopwatch
Stopwatch: Millisecond-precision stopwatch with reset, play-pause, and stop in a compact white widget. Running state shown with a small indicator dot. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Stopwatch
npx motion-ui-skill add stopwatchComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactreacttailwind-merge
Source files
Stopwatch
Millisecond-precision stopwatch with reset, play-pause, and stop in a compact white widget. Running state shown with a small indicator dot.
Install
npx motion-ui-skill add stopwatch
Dependencies
clsxlucide-reactreacttailwind-merge
Usage
"use client";
import { StopwatchWidget } from "@/components/widgets/stopwatch-widget";
export function StopwatchWidgetDemo() {
return (
<div className="flex items-center justify-center p-6">
<StopwatchWidget />
</div>
);
}
API Reference
StopwatchWidget
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |