Skip to main content
Clever Ops

Cohort Countdown Strip

An enrolment-closing strip, seats left, a preformatted close date, and a compact rolling countdown pointing at one warm CTA. Encouraging urgency, not a fire alarm.

Preview & code

Loading Cohort Countdown Strip preview

Installation

pnpm dlx shadcn@latest add @cleverui/cohort-countdown-strip

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

Usage

tsx
import { CohortCountdownStrip } from '@/components/blocks/cohort-countdown-strip'
Exampletsx
import { CohortCountdownStrip } from '@/components/blocks/cohort-countdown-strip'

export default function CohortCountdownStripDemo() {
  return (
    <div className="mx-auto w-full max-w-6xl px-4 py-10 sm:px-6 sm:py-14">
      <CohortCountdownStrip
        heading="Enrolment closes soon"
        cohortLabel="October cohort"
        closesAt="2026-07-26T17:00:00.000Z"
        closesAtLabel="Closes Fri 26 Jul, 5pm"
        now="2026-07-13T12:00:00.000Z"
        seatsLeft={12}
        ctaLabel="Save your seat"
        ctaHref="#enrol"
      />
    </div>
  )
}

API reference

CohortCountdownStrip accepts the following props.

PropTypeDefaultDescription
headingstring'Enrolment closes soon'
cohortLabel*stringwhich intake, e.g. 'October cohort'
closesAt*Date | stringcountdown target datetime (ISO string ok)
closesAtLabel*stringPREFORMATTED visible close date, e.g. 'Closes Fri 26 Jul, 5pm', the only date text ever rendered server-side
nowDate | stringreference time for deterministic SSR/demos; live clients omit and resolve post-mount
seatsLeftnumberrenders a rounded-full 'N seats left' chip when provided
ctaLabelstring'Save your seat'
ctaHrefstring'#'

…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 Cohort Countdown Strip component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/cohort-countdown-strip`. 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 Cohort Countdown Strip require?

Cohort Countdown Strip 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 Cohort Countdown Strip 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