Skip to main content
Clever Ops

Live Board Stats

Instrument-panel grid of stat tiles, counting numerals over mono labels, with one tile carrying a tiny inline SVG sparkline drawn from deterministic prop data.

Preview & code

Loading Live Board Stats preview

Installation

pnpm dlx shadcn@latest add @cleverui/stats-live-board

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

Usage

tsx
import { StatsLiveBoard } from '@/components/blocks/stats-live-board'
Exampletsx
import { StatsLiveBoard } from '@/components/blocks/stats-live-board'

export default function StatsLiveBoardDemo() {
  return (
    <div className="mx-auto max-w-6xl">
      <StatsLiveBoard
        heading="Platform vitals"
        updatedLabel="Last 30 days"
        tiles={[
          {
            label: 'Invoices matched',
            value: 48219,
            delta: '+12.4% vs prior',
          },
          {
            label: 'Match accuracy',
            value: 99.98,
            suffix: '%',
            decimals: 2,
            delta: 'Within SLA',
          },
          {
            label: 'Automation runs',
            value: 1.42,
            suffix: 'M',
            decimals: 2,
            // 12-sample sparkline, deterministic prop data, no Date/random
            points: [42, 48, 45, 52, 58, 61, 55, 67, 72, 70, 78, 84],
            delta: '↑ Steady climb',
          },
          {
            label: 'Median cycle time',
            value: 2.1,
            suffix: 'd',
            decimals: 1,
            delta: '−1.8d vs prior',
          },
          {
            label: 'Exception queue',
            value: 37,
            delta: '12 under review',
          },
          {
            label: 'Active workspaces',
            value: 214,
            suffix: '',
            delta: '+18 this month',
          },
        ]}
      />
    </div>
  )
}

API reference

StatsLiveBoard accepts the following props.

PropTypeDefaultDescription
headingstring'Platform vitals'
updatedLabelstring'Last 30 days'static mono caption, never derived from Date
tiles*StatsLiveBoardTile[]3–6 tiles; exactly one should include points for the sparkline
durationnumber1.2seconds for each tile's count-up sweep

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

Referenced types

Typestsx
export interface StatsLiveBoardTile {
  label: string
  value: number
  prefix?: string
  suffix?: string
  decimals?: number
  /** 8–16 samples, any scale, normalized internally for the sparkline */
  points?: number[]
  /** small mono trend note */
  delta?: string
}

Frequently asked questions

How do I install the Live Board Stats 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-live-board`. 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 Live Board Stats require?

Live Board Stats 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 Live Board Stats 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