f0rextasy

Stopwatch

Component 1

About

A precision stopwatch with start/pause, reset and lap-recording controls, styled like a ticket stub with a digital minutes:seconds.centiseconds readout.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Stopwatch to your project and fits it to your theme.

Code

How Stopwatch is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import Stopwatch from "@/components/ui/stopwatch";

export default function StopwatchDemo() {
  return (
    <div className="flex min-h-[400px] w-full items-center justify-center bg-background p-8">
      <Stopwatch autoStart onLap={(lap) => console.log(lap)} />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    5
  • Board Checklist

    Board Checklist

    3
  • Time Input

    Time Input

    3
  • Running Order Timeline

    Running Order Timeline

    2
  • Network Graph

    Network Graph

    2
  • Empty State Card

    Empty State Card

    1
  • Invite Modal

    Invite Modal

    1
  • Striped Progress Bar

    Striped Progress Bar

    1