Back to dashboards
ComponentChartFree

Cohort Retention Heatmap React component

A single-hue cohort retention matrix with percentage and user views, weighted retention, hover details and unobserved periods kept apart from zero.

About the Cohort Retention Heatmap component

Cohort Retention Heatmap shows whether newer customers stay longer than older ones. Each row is a signup cohort and each column is time since signup, and the cells deepen in a single hue as retention rises.

A switch moves between percentages and user counts, and the headline gives weighted retention for the first period. Periods that have not happened yet show a dash, so they can never be mistaken for zero.

When to use it

Use it for subscription, product and growth dashboards, where you need to compare signup groups over the same time since joining.

For a single retention curve over time, a line chart is simpler to read.

Installation

Add the Cohort Retention Heatmap component to your project with the shadcn CLI. It lands in components/cohort-retention-heatmap.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/cohort-retention-heatmap

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion

Related components

Race Replay Line Chart
Free
Aurora Area Chart
Free
Line Chart
Free
Bar Chart
Free
Stacked Alerts Tray
Free
Newsletter Popup
Free