Skip to main content
Clever Ops

Event Countdown Hero

The event's own countdown hero, oversized date numerals, a mono venue line, poster-scale rolling countdown digits, and one ticket CTA. Doors open in exactly this long.

Preview & code

Loading Event Countdown Hero preview

Installation

pnpm dlx shadcn@latest add @cleverui/event-countdown-hero

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { EventCountdownHero } from '@/components/blocks/event-countdown-hero'
Exampletsx
import { EventCountdownHero } from '@/components/blocks/event-countdown-hero'

export default function EventCountdownHeroDemo() {
  return (
    <div className="mx-auto w-full">
      <EventCountdownHero
        eyebrow="ONE NIGHT ONLY"
        title="Neon Harbour Festival"
        dateLabel="AUG 14–16 2026"
        venueLabel="HORDERN PAVILION · SYDNEY"
        startsAt="2026-08-14T18:00:00.000Z"
        now="2026-07-16T12:00:00.000Z"
        ctaLabel="Get tickets"
        ctaHref="#tickets"
        note="Final release. No door sales."
      />
    </div>
  )
}

API reference

EventCountdownHero accepts the following props.

PropTypeDefaultDescription
eyebrowstringmono kicker, preformatted, e.g. 'ONE NIGHT ONLY'
title*stringthe event name
dateLabel*stringPREFORMATTED oversized date line, e.g. 'AUG 14-16 2026', the only date text ever rendered server-side
venueLabelstringPREFORMATTED venue line, e.g. 'HORDERN PAVILION . SYDNEY'
startsAt*Date | stringcountdown target datetime (ISO string ok)
nowDate | stringreference time for deterministic SSR/demos; live clients omit
ctaLabelstring'Get tickets'
ctaHrefstring'#'
notestringsmall print under the CTA

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Event Countdown Hero component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/event-countdown-hero`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Event Countdown Hero require?

Event Countdown Hero uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Event Countdown Hero to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services