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 stopwatch

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-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

  • clsx
  • lucide-react
  • react
  • tailwind-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

Browse this category