A quarterly results matrix of hairline cells, each pairing a light figure with a signed change tinted by whether the movement is good or bad rather than by its direction, over a line of context.
A quarterly results matrix of hairline cells, each pairing a light figure with a signed change tinted by whether the movement is good or bad rather than by its direction, over a line of context.
Upgrade to Pro
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://ui.beste.co/r/stats69?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/stats69?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/stats69.tsx plus the badge23 component it uses for the eyebrow.
The installed file exports stats69Demo alongside the block: the exact props behind the preview above. Spread it to get a working matrix in one line.
import { Stats69, stats69Demo } from "@/components/beste/block/stats69";
export default function QuarterPage() {
return <Stats69 {...stats69Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Stats69 } from "@/components/beste/block/stats69";
export default function QuarterPage() {
return (
<Stats69
badge={{ label: "This quarter" }}
heading="The board pack, without the board pack"
description="Six numbers a practice lead is asked about every quarter."
periodLabel="Compared with the previous quarter"
metrics={[
{
label: "Appointments booked",
value: "3,841",
delta: "+12.4%",
direction: "up",
better: true,
context: "Across four sites, including the two that opened in February.",
},
{
label: "Invoices outstanding past 30 days",
value: "£4,180",
delta: "+£620",
direction: "up",
better: false,
context: "Up, and almost entirely one insurer we are still chasing.",
},
{
label: "Support conversations",
value: "94",
delta: "0",
direction: "flat",
better: true,
context: "Flat while appointment volume grew.",
},
]}
footnote="Every figure links back to the records behind it."
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string } | – | Eyebrow above the hairline rule, rendered through Badge23 |
heading | string | – | Section heading in the left column of the header |
description | string | – | Supporting paragraph, right-aligned from md up |
periodLabel | string | – | What the changes are measured against |
metrics | Metric[] | [] | The figures, three across from lg |
footnote | string | – | Closing note under the matrix |
className | string | – | Extra classes for the outer section |
type Metric = {
label: string;
value: string;
delta: string;
direction: "up" | "down" | "flat";
better: boolean;
context: string;
};direction and better are separate fields on purpose. The arrow follows the direction of movement, the colour follows whether that movement is good. A falling no-show rate points down and is green; a rising overdue balance points up and is red.direction: "flat" overrides better entirely and renders muted, since a flat number is neither.periodLabel sits in the header rather than on each cell, so the comparison basis is stated once for the whole matrix.context is required and carries its own border-t inside each cell, so no figure is published without a sentence explaining it.flex flex-col with the context marked flex-1, so all cells in a row end level.gap-px over a bg-border container with bg-card cells, clipped by the container's overflow-hidden.tabular-nums, so a currency figure and a percentage still align down the grid.stats66
A results section that stacks each metric on its own hairline row, pairing an oversized figure with a short label, a sentence of context, and an optional year-over-year delta.
stats67
A results section stacking each measure on its own hairline row, moving a muted starting figure to an accented result across an arrow, with a soft closing panel that floats a live comparison card.
stats68
A results section that leads on one oversized total, splits it across a segmented accent bar, then legends each segment on a hairline row aligning its value, share, and what it covers.