animui
ComponentsBlocksDocsPackageTry the demo
Introduction
Installation
Theming
Motion
AI guide
Changelog
Metrics dashboard
KPI drilldown
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Choropleth explorer
Connected scatter
Market terminal
Budget variance
Small multiples
Line replay
AI chat
AI composer
Agent run
AI side panel
SidebarPro4
Page header
Command palette
Notification center
Empty states
Search resultsPro
Login and sign up5
OTP input
Multi-step formPro
Settings page
Settings command
Security settings
Billing overview
Usage billing
Cancel flow
Team members
Invite people
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Environment variables
Plan comparison
Pricing calculatorPro
Usage pricingPro
Cart drawerPro
Checkout summaryPro
Invoice studio
Wallet card
Product listing
Product detail
Inbox triage
Support conversation
Support widget
Help centerNew
File upload
Media playerPro
Week calendar
Availability picker
Project board
Release readiness
Kanban boardNew
Hero section
Hero signupPro
Scroll storyPro
Spotlight gridPro
Feature bentoPro
Comparison table
Logo marquee
Studio perspectivesPro
Stats band
Changelog feed
FAQ section
Contact section
Team showcasePro
Blog grid
Site header
Site footer
CTA section
Newsletter signup
Activity terrain
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
What’s new8 new
BlocksCohort retention

Cohort retentionPro

A cohort retention triangle that morphs into retention curves and rewashes by segment.

Live block · sample data

Cohort retention

Workspaces still active each month after signup. Data through Aug 31, 2026.

Month 1 retention
76.2%0012345678900123456789.00123456789%+5.2 ptslatest 3 vs first 3 cohorts
Month 6 retention
45.7%0012345678900123456789.00123456789%+3.4 ptslatest 3 vs first 3 cohorts
New workspaces
5,19900123456789,001234567890012345678900123456789Signed up Aug 2025 to Jul 2026
% retained2035506580
100%75%50%25%0%Aug 2025360Sep 2025386Oct 2025402Nov 2025416Dec 2025395Jan 2026398Feb 2026461Mar 2026434Apr 2026459May 2026502Jun 2026495Jul 2026491Average5,199Months since signup123456789101112736355504643424139393938746355514745434141403974645651474443424039756557534846444241766658534947454472635752484644776759545048776860545179686155786760786980766658524846434240393938

Use the arrow keys to move between cohorts and months, Home and End to jump within a cohort, and Escape to clear.

Share of all workspaces still active by months since signup
CohortWorkspacesMonth 1Month 2Month 3Month 4Month 5Month 6Month 7Month 8Month 9Month 10Month 11Month 12
Aug 202536072.5%62.5%55.3%50.3%46.4%43.1%41.9%40.6%39.4%38.9%38.6%38.1%
Sep 202538674.1%62.7%55.4%50.5%47.2%44.6%43.0%40.9%40.9%39.9%39.1%Not yet measured
Oct 202540274.1%63.7%55.7%51.0%46.5%43.8%43.0%42.0%40.0%39.3%Not yet measuredNot yet measured
Nov 202541674.5%64.7%57.2%52.6%47.6%46.2%44.5%42.3%40.6%Not yet measuredNot yet measuredNot yet measured
Dec 202539576.2%65.6%58.2%52.9%49.4%47.3%44.6%44.1%Not yet measuredNot yet measuredNot yet measuredNot yet measured
Jan 202639871.6%62.8%56.8%51.5%48.5%46.0%43.7%Not yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measured
Feb 202646176.6%67.0%58.8%54.0%50.3%48.2%Not yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measured
Mar 202643476.7%67.5%59.9%53.9%50.7%Not yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measured
Apr 202645978.6%68.2%60.6%54.7%Not yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measured
May 202650278.1%67.3%59.8%Not yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measured
Jun 202649578.4%69.3%Not yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measured
Jul 202649179.8%Not yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measuredNot yet measured
Average5,19976.2%65.8%57.9%52.5%48.4%45.7%43.5%42.0%40.3%39.4%38.9%38.1%

When to use

  • Growth or customer success dashboards comparing how signup cohorts retain month over month.
  • Views that need both the cohort triangle and retention curves from the same data.

When not to use

  • Use journey-flow for paths between funnel steps.
  • Use activity-heatmap for activity by day rather than by cohort.
  • Use revenue-explorer for revenue over time.

Installation

Install animui once, then import any component or block from its typed package entry.

animui · 250 components and blocks

React 19 and React DOM 19 are required. The package includes Free and Pro entries, styles and TypeScript declarations.

npm install https://animui.stracture.net/__local/package.tgz

Load the stylesheet once at your app root, then use the typed component import:

import 'animui/styles.css';
import { CohortRetention } from 'animui/cohort-retention';

Read the Code tab for the implementation files and the API reference below for required props.

Download animui 0.3.0 · Agent guide

Usage

Use this on a growth or customer success dashboard to compare how signup cohorts retain. Replace simulate() in cohort-data.ts with your cohort sizes and retained counts per month; rates, averages, headline figures and deltas are derived from them.

example.tsx
1import { CohortRetention } from "animui/cohort-retention";2 3export default function GrowthPage() {4  return (5    <section>6      <CohortRetention />7    </section>8  );9}
Built fromSegmented controlAnimated counter

API reference

CohortRetention

A cohort retention triangle that morphs into retention curves, with segment filters and a keyboard-navigable cell cursor. Cohort sizes and retained counts come from simulate() in cohort-data.ts.

No props.

Keyboard interactions

Arrow keys
Move the cell cursor between cohorts (rows) and months (columns).
HomeorEnd
Jump to the first or last month of the current cohort.
Escape
Clears the cursor.

Accessibility

  • The chart is a focusable role="group" with aria-describedby, and a polite live region reads the focused cohort, month and rate.
  • Decorative cells and curves are aria-hidden; the legend is a labelled role="img".

Motion

  • Cells morph into curves on the view switch and rewash their colour when the segment changes; headline figures roll with Animated counter.
  • Reduced motion jumps values instantly and follows the pointer without springs.

Responsive behavior

  • Chart geometry follows container width through a ResizeObserver.
  • Below a 560px container padding tightens and the KPI context wraps.
  • The chart uses touch-action pan-y, so touch scrubbing does not block vertical page scroll.

Performance

  • The triangle is 12 cohorts by 12 months of SVG cells; much larger grids mean many more animated cells.
  • Cell colour changes use CSS transitions with a stagger instead of JavaScript per cell.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use on a growth or customer success dashboard to compare how signup cohorts retain.
  • Replace simulate() in cohort-data.ts with your cohort sizes and monthly retained counts; rates, averages and deltas are derived.
  • Edit SEGMENTS in cohort-data.ts to match your segments. No props or callbacks.
  • Composes animui Segmented control and Animated counter.
/components/blocks/cohort-retention/markdown

The full library index for assistants is at /llms.txt.

Related

Revenue explorerProBlockA SaaS revenue chart you zoom with a brush while paths, axes and figures glide to the range.Journey flowProBlockA Sankey of user journeys whose flows morph by channel and trace a cohort on hover.Metrics dashboardProBlockA dense analytics view with KPI tabs, one inspectable chart, and top pages and sources.Activity heatmapComponentSee a year of activity at a glance, one square per day.Segmented controlComponentSwitch between a small set of related views.
PreviousCancel flowNextSupport widget
animui · 84 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown