ebnsina

Countdown Timer

Component 38

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

    28
  • Hourglass Timer

    Hourglass Timer

    24
  • Alarm Clock

    Alarm Clock

    24
  • Voice Note

    Voice Note

    19
  • Sortable List

    Sortable List

    18
  • Sign In Auth Card

    Sign In Auth Card

    14
  • Split Button

    Split Button

    14
  • Shaka Video

    Shaka Video

    11