Cohort table preview
Compare exact cohort percentages with separate missing and future states, a semantic desktop table, and compact phone summaries.
pro · Data · composite
When to use
- Use it when a page needs compare exact cohort percentages with separate missing and future states, a semantic desktop table, and compact phone summaries.
- Choose it when the data structure, labels, and state are supplied by the application and must remain consumer controlled.
Alternatives
- Choose data-table instead when sortable column controls, native row selection and a scrollable table is the actual interface need, rather than cohort table.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/cohort-tableImport components/ui/tidal.css, components/ui/cohort-table.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/cohort-table.css";
import{TidalCohortTable}from"./components/ui/cohort-table";
export default()=><div className="tidal-scope"><TidalCohortTable periods={[{id:"example",label:"Demo"}]} rows={[{id:"example",label:"Demo",population:1,reachedPeriods:1,values:{}}]} title={"Demo"}/></div>;API and props
TidalCohortTable.periods (required)ReadonlyArray<TidalCohortPeriod>Required periods value accepted by this exported component.
TidalCohortTable.rows (required)ReadonlyArray<TidalCohortRow>Required rows value accepted by this exported component.
TidalCohortTable.title (required)ReactNodeRequired title value accepted by this exported component.
TidalCohortTable.descriptionReactNodeOptional description value accepted by this exported component.
TidalCohortTable.formatPopulation((value: number) => string) | undefinedOptional format population value accepted by this exported component.
TidalCohortTable.formatValue((value: number) => string) | undefinedOptional format value value accepted by this exported component.
TidalCohortTable.headingLevel"h2" | "h3" | "h4" | "h5" | "h6" | undefinedOptional heading level value accepted by this exported component.
TidalCohortTable.labelsPartial<{ cohort: string; population: string; missing: string; future: string; empty: string; invalid: string; table: string; }> | undefinedOptional labels value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.