Skip to main content
Clever Ops

Case Results Band

An anonymized results strip, large tabular outcomes like $4.2M recovered counting up once with measured restraint between hairline seams, over a formal disclaimer line.

Preview & code

Loading Case Results Band preview

Installation

pnpm dlx shadcn@latest add @cleverui/case-results-band

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

Usage

tsx
import { CaseResultsBand } from '@/components/blocks/case-results-band'
Exampletsx
'use client'

import { CaseResultsBand } from '@/components/blocks/case-results-band'

export default function CaseResultsBandDemo() {
  return (
    <div className="flex min-h-[440px] items-center">
      <CaseResultsBand
        heading="Selected results"
        results={[
          {
            value: 4.2,
            prefix: '$',
            suffix: 'M',
            decimals: 1,
            label: 'Recovered for clients',
          },
          {
            value: 38,
            suffix: '',
            label: 'Matters resolved without trial',
          },
          {
            value: 12,
            suffix: '',
            label: 'Appeals argued in the last five years',
          },
          {
            value: 96,
            suffix: '%',
            label: 'Matters concluded on agreed terms',
          },
        ]}
        duration={1.6}
        disclaimer="Past results are not a guarantee of future outcomes. Every matter turns on its own facts. Figures are anonymised and stated in aggregate."
      />
    </div>
  )
}

API reference

CaseResultsBand accepts the following props.

PropTypeDefaultDescription
headingstring'Selected results'spaced small-caps serif above the figures
results*CaseResult[]3–5 anonymized outcomes
durationnumber1.6seconds for the single measured count-up
disclaimerstring'Past results are not a guarantee of future outcomes. Every matter turns on its own facts.'

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

Referenced types

Typestsx
export interface CaseResult {
  value: number
  prefix?: string
  suffix?: string
  decimals?: number
  /** sentence-case line, e.g. 'Recovered for clients' */
  label: string
}

Frequently asked questions

How do I install the Case Results 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/case-results-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 Case Results Band require?

Case Results 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 Case Results 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