Component libraryCohort table

Cohort table

Pro

Compare exact cohort percentages with separate missing and future states, a semantic desktop table, and compact phone summaries.

npx shadcn@latest add @tidal-pro/cohort-table
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/cohort-table

Import components/ui/tidal.css, components/ui/cohort-table.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Consumer-owned unique period and row IDs/labels, up to12 periods and24 cohorts. Each row supplies a nonnegative safe-integer population, reachedPeriods count and keyed finite0..100 percentages or null. Missing values within reached periods mean No data; later periods mean Not reached and must not contain measurements. Invalid IDs, rates or future measurements fail visibly. Desktop semantic table has column/row headings, exact values beyond neutral shading and a locally bounded scroll region that enters tab order only when overflowing. Narrow containers switch to per-cohort description-list summaries. Formatters, localized labels, zero content, native section props/ref, h2-h6 hierarchy, RTL and forced colors are supported. The component does not calculate retention, populations, averages, forecasts or cohort membership, and performs no request or storage.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.