A retention table that follows each joining cohort across its first year, tinting every cell by how high the figure is and dashing the months that have not happened yet.
A retention table where each row follows one intake of customers across five periods, filling every cell with an accent step scaled to the figure and dashing the months that have not happened yet.
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/stats72?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/stats72?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/stats72.tsx plus the badge23 and button21 components it uses for the eyebrow and the action.
The installed file exports stats72Demo alongside the block: the exact props behind the preview above. Spread it to get a working table in one line.
import { Stats72, stats72Demo } from "@/components/beste/block/stats72";
export default function RetentionPage() {
return <Stats72 {...stats72Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Stats72 } from "@/components/beste/block/stats72";
export default function RetentionPage() {
return (
<Stats72
badge={{ label: "Retention" }}
heading="Every practice that joined, and whether they stayed"
description="Blank cells are months that have not happened yet."
cohortLabel="Joined"
sizeLabel="Practices"
periods={["Month 1", "Month 3", "Month 6", "Month 9", "Month 12"]}
cohorts={[
{ label: "Q1 2025", size: "18", values: [100, 100, 94, 94, 94] },
{ label: "Q3 2025", size: "29", values: [100, 100, 97, 97, null] },
]}
legendTitle="Reading it"
legend={[
"Each figure is the share of that quarter's practices still on the platform.",
"A practice counts as retained only if it is running live clinics.",
]}
footnote="We publish this quarterly whether the direction is flattering or not."
button={{ label: "Read why practices left", href: "/churn" }}
/>
);
}| 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 |
cohortLabel | string | – | Heading for the cohort column |
sizeLabel | string | – | Heading for the cohort size column |
periods | string[] | [] | Period column headings, left to right |
cohorts | Cohort[] | [] | One row per intake, newest last |
legendTitle | string | – | Heading above the reading notes |
legend | string[] | [] | How to read the table, as hairline rows |
footnote | string | – | Publication note beside the action |
button | { label: string; href: string } | – | Outline action |
className | string | – | Extra classes for the outer section |
type Cohort = {
label: string;
size: string;
values: (number | null)[];
};fillFor helper, which buckets a value into five accent steps at 95, 90, 85 and 75. Those thresholds are tuned for retention percentages, so a table of different figures needs them changed in the installed file.null in values means "not yet", and renders a dashed outline with an em dash rather than a zero. That distinction is the whole point of a cohort table, so use null rather than omitting the entry.values should be the same length as periods for every cohort. A short array simply renders fewer cells and leaves the row ragged.table with scope="col" and scope="row" headers, so a screen reader announces each figure with its cohort and period. The cohort th carries an explicit font-medium, since a th inherits bold from the browser default and Tailwind's Preflight does not reset it.min-w-[44rem] inside an overflow-x-auto wrapper, so it scrolls horizontally on small screens rather than compressing seven columns.h-11 so the grid stays even whether a cell holds a percentage or a dash.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.
stats15
Asymmetric bento-style grid with mixed single and double-width stat cards. Ideal for year-in-review and annual report sections.
stats69
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.
stats70
An annual results section pairing an image tile that floats a live breakdown chart with a light interpretation of it, then four hairline readings that each name their own source, closing on a method panel.