ebnsina

Countdown Timer

Component 20

About

A countdown timer whose duration is set by dragging, swiping, scrolling, or using arrow keys on a sliding minute ruler; it chimes and updates the tab title when time is up. Ported to React from the Svelte original ('Timer', part of Sina UI) by ebnsina, MIT licensed.

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

Code

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

Usage.tsx

import Timer from "@/components/ui/timer";

export default function TimerDemo() {
  return <Timer label="Study timer" minutes={15} />;
}

Dependencies

More by ebnsina

View all
  • Video Player

    Video Player

    15
  • Alarm Clock

    Alarm Clock

    15
  • Voice Note

    Voice Note

    12
  • Split Button

    Split Button

    11
  • Sortable List

    Sortable List

    10
  • Stopwatch

    Stopwatch

    5
  • Code Block

    Code Block

    5
  • Shaka Video

    Shaka Video

    1