ebnsina

Countdown Timer

Component 33

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

    24
  • Alarm Clock

    Alarm Clock

    22
  • Voice Note

    Voice Note

    18
  • Hourglass Timer

    Hourglass Timer

    16
  • Sortable List

    Sortable List

    16
  • Split Button

    Split Button

    13
  • Sign In Auth Card

    Sign In Auth Card

    11
  • Code Block

    Code Block

    10