ebnsina

Hourglass Timer

Component

About

A sand-timer widget you flip to start a countdown: an animated hourglass with falling grains, a rolling-digit time readout, preset length picker and pause/resume/flip controls. Ported from Sina UI's Svelte "Hourglass" widget by ebnsina (MIT licensed).

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

Code

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

Usage.tsx

import Hourglass from "@/components/ui/hourglass";

export default function HourglassDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-[var(--ui-bg,#fff)] p-6">
      <Hourglass label="Sand timer" seconds={60} />
    </div>
  );
}

More by ebnsina

View all
  • Countdown Timer

    Countdown Timer

    26
  • Video Player

    Video Player

    19
  • Alarm Clock

    Alarm Clock

    19
  • Voice Note

    Voice Note

    12
  • Split Button

    Split Button

    11
  • Sortable List

    Sortable List

    11
  • Code Block

    Code Block

    8
  • Sign In Auth Card

    Sign In Auth Card

    6