Staaarter

Countdown Timer Launch

A centered coming-soon screen built around a live countdown timer that ticks down to a configurable launch date. Four segments show days, hours, minutes, and seconds, updating every second on the client.

By Staaarter Team
Coming Soon
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/countdown-timer-launch.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/coming-soon/comingsoon1.tsx instead.

Usage

The file also exports comingsoon1Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { ComingSoon1, comingsoon1Demo } from "@/components/blocks/coming-soon/comingsoon1";

export default function Page() {
  return <ComingSoon1 {...comingsoon1Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstring"Coming soon"Small label above the heading.
headingstring"Something new is on the way"Main heading.
descriptionstring"We're putting the finishing touches..."Supporting copy under the heading.
targetDatestringnoneISO date string the countdown ticks down to.
classNamestringnoneExtra classes for the outer section element.

Behavior notes

  • The countdown is real client state: an effect computes the remaining milliseconds every second (setInterval) from `targetDate`, no Date.now() or new Date() is ever called in the render path.
  • Before the first tick fires, each unit renders a "--" placeholder so the server-rendered and first client-rendered markup match exactly, avoiding a hydration mismatch.
  • Once the target date passes, remaining time is clamped to zero rather than going negative.