ebnsina

Stopwatch

Component 8

About

A stopwatch with start/stop and lap/reset buttons that times to the hundredth of a second and marks the fastest and slowest laps, ported to React from Sina UI's Svelte component by ebnsina.

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

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

export default function StopwatchDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center p-6">
      <Stopwatch label="Experiment timer" />
    </div>
  );
}

More by ebnsina

View all
  • Countdown Timer

    Countdown Timer

    35
  • Video Player

    Video Player

    26
  • Alarm Clock

    Alarm Clock

    24
  • Hourglass Timer

    Hourglass Timer

    20
  • Voice Note

    Voice Note

    19
  • Sortable List

    Sortable List

    18
  • Sign In Auth Card

    Sign In Auth Card

    14
  • Split Button

    Split Button

    13

Explore more