Cohort Retention GridPRO

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.

Stats72: Cohort Retention Grid

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.

Upgrade Now

Installation

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

bash
npx shadcn add "https://ui.beste.co/r/stats72?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
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.

Quick start

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.

tsx
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:

tsx
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" }}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string }Eyebrow above the hairline rule, rendered through Badge23
headingstringSection heading in the left column of the header
descriptionstringSupporting paragraph, right-aligned from md up
cohortLabelstringHeading for the cohort column
sizeLabelstringHeading for the cohort size column
periodsstring[][]Period column headings, left to right
cohortsCohort[][]One row per intake, newest last
legendTitlestringHeading above the reading notes
legendstring[][]How to read the table, as hairline rows
footnotestringPublication note beside the action
button{ label: string; href: string }Outline action
classNamestringExtra classes for the outer section
ts
type Cohort = {
  label: string;
  size: string;
  values: (number | null)[];
};

Behavior notes

More Stats blocks

View all Stats
FREE

stats66

Outcome Metric Rows

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.

PRO

stats15

Bento Grid Stats

Asymmetric bento-style grid with mixed single and double-width stat cards. Ideal for year-in-review and annual report sections.

PRO

stats69

Quarterly Metric Matrix

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.

PRO

stats70

Annual Report Readings

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.

PRO

stats32

Giant Watermark Stats

Editorial magazine-style layout with oversized translucent numbers as background watermarks behind each stat row.

PRO

stats71

Single Headline Figure

A results section that commits to one enormous light figure, reads it back as a statement under a hairline, qualifies it with three smaller footnotes, and closes on a captioned full-bleed photograph.