Skip to main content
Clever Ops

Stats Band

Full-width hairline band of three to five counting stats, tabular numerals tick up once on view over mono micro-labels, separated by vertical hairline seams.

Preview & code

Loading Stats Band preview

Installation

pnpm dlx shadcn@latest add @cleverui/stats-band

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

Usage

tsx
import { StatsBand } from '@/components/blocks/stats-band'
Exampletsx
import { StatsBand } from '@/components/blocks/stats-band'

export default function StatsBandDemo() {
  return (
    <div className="flex min-h-[360px] items-center py-10">
      <StatsBand
        stats={[
          { value: 214, label: 'Teams onboarded', suffix: '+' },
          { value: 38, label: 'Hours returned / eng', suffix: 'h' },
          { value: 99.98, label: 'Match accuracy', suffix: '%', decimals: 2 },
          { value: 4.2, label: 'Payback window', suffix: ' mo', decimals: 1 },
        ]}
        footnote="Audited Q2 2026 · Meridian Ops Platform"
      />
    </div>
  )
}

API reference

StatsBand accepts the following props.

PropTypeDefaultDescription
stats*StatsBandStat[]3–5 entries; value is the final number, prefix/suffix wrap it
durationnumber1.2seconds for the count-up sweep
footnotestringoptional mono source line

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

Referenced types

Typestsx
export interface StatsBandStat {
  value: number
  label: string
  prefix?: string
  suffix?: string
  decimals?: number
}

Frequently asked questions

How do I install the Stats Band component?

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

Stats Band 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 Stats Band 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