Velocity X Components

Growth & Conversion

Countdown Urgency Banner

An inline deadline banner for a sale or launch window that counts down and then degrades gracefully to a plain closing message the instant it ends — never a broken negative-time state. Dismissible and remembered for the session.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add countdown-urgency-banner

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Countdown Urgency Banner →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.1 react
Countdown Urgency Banner
Founding pricing

Lock in founding-member pricing before it closes.

29d:08h:52m:52s

Props

NameTypeRequiredDefaultDescription
deadlinestring | DateYesISO 8601 deadline. Anything `Date` can parse.
eyebrowstringNo'Limited time'
messagestringNo'This offer closes soon.'Message shown while the countdown is live.
expiredMessagestringNo'This offer has ended — check back for the next one.'Message shown once the deadline has passed.
ctaTextstringNo
ctaHrefstringNo
dismissiblebooleanNotrue
storageKeystring | nullNo'velocity.countdownbanner.dismissed'sessionStorage key used to remember a dismissal. Set null to disable persistence.

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/countdown-urgency-banner/CountdownUrgencyBanner.tsx

Using the Countdown Urgency Banner component

Install it with velocityx add countdown-urgency-banner. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Growth & Conversion.