{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cohort-grid",
  "type": "registry:component",
  "title": "Cohort grid",
  "description": "A retention triangle that shows how each signup cohort holds on over time, with a crosshair readout for exact numbers.",
  "categories": [
    "charts"
  ],
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/registry/overtrue/cohort-grid.tsx",
      "type": "registry:component",
      "target": "components/overtrue/cohort-grid.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nexport interface CohortGridCohort {\n  id: string;\n  /** Row label, e.g. \"Jan 2026\" or \"Week of Sep 29\". */\n  label: string;\n  /** People who entered the cohort. Retained counts are derived from it. */\n  size: number;\n  /**\n   * Retention per period as a 0–1 fraction, in period order.\n   * Use `null` (or leave the entry out) for periods that have not happened yet.\n   */\n  values: (number | null)[];\n}\n\nexport type CohortGridMode = \"percent\" | \"count\";\n\n/** Everything known about one cell, passed to `onCellSelect`. */\nexport interface CohortGridCell {\n  /** The cohort row, or `null` for the weighted average row. */\n  cohort: CohortGridCohort | null;\n  label: string;\n  period: string;\n  periodIndex: number;\n  /** Retention fraction, or `null` when the period has not happened yet. */\n  value: number | null;\n  /** People still active in this period, or `null` when there is no data yet. */\n  retained: number | null;\n  /** People the retention is measured against. */\n  base: number;\n}\n\nexport interface CohortGridProps extends Omit<\n  React.ComponentProps<\"div\">,\n  \"title\"\n> {\n  /** One row per cohort, oldest first so the matrix forms a triangle. */\n  cohorts: CohortGridCohort[];\n  /** Column labels. Defaults to M0, M1, … for the longest cohort. */\n  periods?: string[];\n  /** Show retention as a percentage or as retained people. Color always follows retention. */\n  mode?: CohortGridMode;\n  /** Add a size-weighted average row under the cohorts. */\n  showAverage?: boolean;\n  /** Show the color scale and the pending-period key. */\n  showLegend?: boolean;\n  title?: React.ReactNode;\n  description?: React.ReactNode;\n  /** Controls placed at the top right, such as a percent/count toggle. */\n  actions?: React.ReactNode;\n  /**\n   * Formats a 0–1 retention fraction everywhere. By default cells show whole\n   * percentages and the readout shows one decimal.\n   */\n  valueFormatter?: (value: number) => string;\n  /**\n   * Formats people counts everywhere. By default cells go compact from 1,000 and the\n   * size column from 10,000, while the readout and cell labels stay exact.\n   */\n  countFormatter?: (count: number) => string;\n  /** Any CSS color. Cells mix it with transparency by retention. Defaults to chart-1. */\n  color?: string;\n  /**\n   * Retention mapped to the lightest and strongest fill. Defaults to the range of\n   * the periods after period 0, which is usually 100% by definition.\n   */\n  domain?: [number, number];\n  /** Heading for the label column. */\n  cohortLabel?: string;\n  /** Heading for the cohort size column. */\n  sizeLabel?: string;\n  /** Noun used in the readout and cell labels, e.g. \"subscribers\". */\n  unit?: string;\n  /** Label for the average row. Defaults to \"Weighted avg\", or \"Total retained\" in count mode. */\n  averageLabel?: string;\n  /** Called when a cell with data is clicked or activated with Enter or Space. */\n  onCellSelect?: (cell: CohortGridCell) => void;\n}\n\ntype Position = { row: number; col: number };\n\n/** Precise percent for the readout and cell labels. */\nfunction detailPercent(value: number) {\n  const pct = value * 100;\n  if (pct === 0) return \"0%\";\n  if (pct >= 99.95) return \"100%\";\n  if (pct > 0 && pct < 0.05) return \"<0.1%\";\n  return `${pct.toFixed(1)}%`;\n}\n\n/** Whole percent keeps dense cells quiet; the readout carries the decimals. */\nfunction cellPercent(value: number) {\n  const pct = value * 100;\n  if (pct > 0 && pct < 1) return \"<1%\";\n  return `${Math.round(pct)}%`;\n}\n\nconst compact = new Intl.NumberFormat(\"en-US\", {\n  notation: \"compact\",\n  maximumFractionDigits: 1,\n});\n\nfunction exactCount(count: number) {\n  return count.toLocaleString(\"en-US\");\n}\n\n/** Size column: exact until five digits. */\nfunction sizeCount(count: number) {\n  return Math.abs(count) >= 10_000\n    ? compact.format(count)\n    : count.toLocaleString(\"en-US\");\n}\n\n/** Cells are narrow, so counts go compact from four digits. */\nfunction cellCount(count: number) {\n  return Math.abs(count) >= 1_000\n    ? compact.format(count)\n    : count.toLocaleString(\"en-US\");\n}\n\nfunction clamp(value: number, min: number, max: number) {\n  return Math.min(max, Math.max(min, value));\n}\n\n/** Mix the accent into the card surface so every theme gets its own ramp. */\nfunction fillFor(color: string, t: number) {\n  const pct = Math.round(8 + clamp(t, 0, 1) * 92);\n  return `color-mix(in oklab, ${color} ${pct}%, var(--color-card))`;\n}\n\n/**\n * Pick light or dark text from the fill's own lightness, tinted with its hue, so\n * strong cells stay readable whether the theme's chart color is deep or pale.\n * Browsers without relative color syntax keep the inherited foreground.\n */\nfunction inkFor(fill: string) {\n  return `oklch(from ${fill} clamp(0.2, (0.6 - l) * 1000, 0.985) min(c, 0.035) h)`;\n}\n\n// A short fade on the sticky column's edge, shown once the matrix scrolls under it.\nconst stickyFade =\n  \"after:pointer-events-none after:absolute after:inset-y-0 after:-right-3 after:w-3 after:bg-gradient-to-r after:from-card after:to-transparent after:opacity-0 after:transition-opacity group-data-[scrolled=true]/scroll:after:opacity-100 motion-reduce:after:transition-none\";\n\nconst hatch =\n  \"repeating-linear-gradient(-45deg, color-mix(in oklab, var(--color-muted-foreground) 26%, transparent) 0 1px, transparent 1px 5px)\";\n\n/**\n * A retention cohort matrix. Rows are cohorts, columns are periods since the cohort\n * started, and cell color follows retention. Hover or focus a cell to light up its\n * row and column and read the exact numbers; arrow keys move between cells.\n */\nfunction CohortGrid({\n  cohorts,\n  periods: periodsProp,\n  mode = \"percent\",\n  showAverage = false,\n  showLegend = false,\n  title,\n  description,\n  actions,\n  valueFormatter,\n  countFormatter,\n  color = \"var(--color-chart-1)\",\n  domain,\n  cohortLabel = \"Cohort\",\n  sizeLabel = \"Users\",\n  unit = \"users\",\n  averageLabel,\n  onCellSelect,\n  className,\n  ...props\n}: CohortGridProps) {\n  const formatCell = valueFormatter ?? cellPercent;\n  // Dense spots (cells, the size column) go compact; the readout and labels stay exact.\n  const formatCellCount = countFormatter ?? cellCount;\n  const formatSize = countFormatter ?? sizeCount;\n  const formatExact = countFormatter ?? exactCount;\n  const formatDetail = valueFormatter ?? detailPercent;\n  const id = React.useId();\n  const tableRef = React.useRef<HTMLTableElement>(null);\n  const scrollRef = React.useRef<HTMLDivElement>(null);\n  const [hovered, setHovered] = React.useState<Position | null>(null);\n  const [focused, setFocused] = React.useState<Position | null>(null);\n  const [tabStop, setTabStop] = React.useState<Position>({ row: 0, col: 0 });\n  const [scrolled, setScrolled] = React.useState(false);\n\n  const periodCount =\n    periodsProp?.length ??\n    cohorts.reduce((max, cohort) => Math.max(max, cohort.values.length), 0);\n  const periods = React.useMemo(\n    () =>\n      periodsProp ?? Array.from({ length: periodCount }, (_, i) => `M${i}`),\n    [periodsProp, periodCount],\n  );\n\n  const [low, high] = React.useMemo(() => {\n    if (domain) return domain;\n    // Period 0 is usually 100% by definition, so spend the ramp on the periods after it.\n    const range = (from: number) => {\n      let min = Infinity;\n      let max = -Infinity;\n      for (const cohort of cohorts)\n        for (let i = from; i < cohort.values.length; i++) {\n          const value = cohort.values[i];\n          if (value == null || !Number.isFinite(value)) continue;\n          min = Math.min(min, value);\n          max = Math.max(max, value);\n        }\n      return [min, max] as [number, number];\n    };\n    let [min, max] = range(1);\n    if (!Number.isFinite(min) || min === max) [min, max] = range(0);\n    if (!Number.isFinite(min)) return [0, 1] as [number, number];\n    return [min === max ? 0 : min, max || 1] as [number, number];\n  }, [cohorts, domain]);\n  const span = high - low || 1;\n  const position = (value: number) => clamp((value - low) / span, 0, 1);\n\n  const totalSize = cohorts.reduce((sum, cohort) => sum + cohort.size, 0);\n\n  const average = React.useMemo(\n    () =>\n      periods.map((_, c) => {\n        let base = 0;\n        let retained = 0;\n        let weighted = 0;\n        for (const cohort of cohorts) {\n          const value = cohort.values[c];\n          if (value == null || !Number.isFinite(value)) continue;\n          base += cohort.size;\n          weighted += cohort.size * value;\n          retained += Math.round(cohort.size * value);\n        }\n        return base > 0\n          ? { value: weighted / base, retained, base }\n          : { value: null, retained: null, base: 0 };\n      }),\n    [cohorts, periods],\n  );\n\n  const rowCount = cohorts.length + (showAverage ? 1 : 0);\n  const averageRow = showAverage ? cohorts.length : -1;\n\n  const cellAt = React.useCallback(\n    (row: number, col: number): CohortGridCell => {\n      const period = periods[col] ?? \"\";\n      if (row === averageRow) {\n        const entry = average[col];\n        return {\n          cohort: null,\n          label:\n            averageLabel ??\n            (mode === \"count\" ? \"Total retained\" : \"Weighted avg\"),\n          period,\n          periodIndex: col,\n          value: entry?.value ?? null,\n          retained: entry?.retained ?? null,\n          base: entry?.base ?? 0,\n        };\n      }\n      const cohort = cohorts[row];\n      const raw = cohort?.values[col];\n      const value = raw == null || !Number.isFinite(raw) ? null : raw;\n      return {\n        cohort: cohort ?? null,\n        label: cohort?.label ?? \"\",\n        period,\n        periodIndex: col,\n        value,\n        retained: value == null ? null : Math.round((cohort?.size ?? 0) * value),\n        base: cohort?.size ?? 0,\n      };\n    },\n    [average, averageLabel, averageRow, cohorts, mode, periods],\n  );\n\n  // Keep the roving tab stop inside the matrix when the data shrinks.\n  const stop = {\n    row: clamp(tabStop.row, 0, Math.max(0, rowCount - 1)),\n    col: clamp(tabStop.col, 0, Math.max(0, periods.length - 1)),\n  };\n  const active = hovered ?? focused;\n  const activeCell = active ? cellAt(active.row, active.col) : null;\n\n  const move = (next: Position) => {\n    const row = clamp(next.row, 0, rowCount - 1);\n    const col = clamp(next.col, 0, periods.length - 1);\n    setTabStop({ row, col });\n    const element = tableRef.current?.querySelector<HTMLElement>(\n      `[data-row=\"${row}\"][data-col=\"${col}\"]`,\n    );\n    if (!element) return;\n    element.focus({ preventScroll: true });\n    // Keep the cell clear of the sticky label column while scrolling sideways.\n    const scroller = scrollRef.current;\n    const sticky =\n      tableRef.current?.querySelector<HTMLElement>(\"th\")?.offsetWidth ?? 0;\n    if (scroller) {\n      const left = element.offsetLeft;\n      const right = left + element.offsetWidth;\n      if (left - scroller.scrollLeft < sticky)\n        scroller.scrollLeft = left - sticky;\n      else if (right - scroller.scrollLeft > scroller.clientWidth)\n        scroller.scrollLeft = right - scroller.clientWidth;\n    }\n    element.scrollIntoView({ block: \"nearest\", inline: \"nearest\" });\n  };\n\n  const onKeyDown = (event: React.KeyboardEvent<HTMLTableElement>) => {\n    const target = event.target as HTMLElement;\n    if (target.dataset.slot !== \"cohort-grid-cell\") return;\n    const row = Number(target.dataset.row);\n    const col = Number(target.dataset.col);\n    const last = { row: rowCount - 1, col: periods.length - 1 };\n    const keys: Record<string, Position | undefined> = {\n      ArrowRight: { row, col: col + 1 },\n      ArrowLeft: { row, col: col - 1 },\n      ArrowDown: { row: row + 1, col },\n      ArrowUp: { row: row - 1, col },\n      Home: event.ctrlKey ? { row: 0, col: 0 } : { row, col: 0 },\n      End: event.ctrlKey ? last : { row, col: last.col },\n      PageUp: { row: 0, col },\n      PageDown: { row: last.row, col },\n    };\n    const next = keys[event.key];\n    if (next) {\n      event.preventDefault();\n      move(next);\n      return;\n    }\n    if ((event.key === \"Enter\" || event.key === \" \") && onCellSelect) {\n      const cell = cellAt(row, col);\n      if (cell.value == null) return;\n      event.preventDefault();\n      onCellSelect(cell);\n    }\n  };\n\n  const hasHeader = title != null || description != null || actions != null;\n  const tableLabel =\n    typeof title === \"string\" ? title : \"Cohort retention by period\";\n  const resolvedAverageLabel =\n    averageLabel ?? (mode === \"count\" ? \"Total retained\" : \"Weighted avg\");\n\n  const display = (cell: CohortGridCell) =>\n    cell.value == null\n      ? \"\"\n      : mode === \"count\"\n        ? formatCellCount(cell.retained ?? 0)\n        : formatCell(cell.value);\n\n  const describe = (cell: CohortGridCell) =>\n    cell.value == null\n      ? `${cell.label}, ${cell.period}: no data yet`\n      : `${cell.label}, ${cell.period}: ${formatDetail(cell.value)} retained, ${formatExact(cell.retained ?? 0)} of ${formatExact(cell.base)} ${unit}`;\n\n  const renderCell = (row: number, col: number) => {\n    const cell = cellAt(row, col);\n    const isAverage = row === averageRow;\n    const isActive = active?.row === row && active?.col === col;\n    const inCrosshair =\n      active != null && (active.row === row || active.col === col);\n    const t = cell.value == null ? null : position(cell.value);\n    const fill = t == null ? null : fillFor(color, t);\n    const selectable = onCellSelect != null && cell.value != null;\n\n    return (\n      <td\n        key={col}\n        role=\"gridcell\"\n        data-slot=\"cohort-grid-cell\"\n        data-row={row}\n        data-col={col}\n        data-empty={cell.value == null || undefined}\n        aria-label={describe(cell)}\n        tabIndex={stop.row === row && stop.col === col ? 0 : -1}\n        onPointerEnter={() => setHovered({ row, col })}\n        onFocus={() => {\n          setFocused({ row, col });\n          setTabStop({ row, col });\n        }}\n        onClick={selectable ? () => onCellSelect(cell) : undefined}\n        className={cn(\n          \"group/cell p-[1.5px] outline-none\",\n          isAverage && \"border-t border-dashed pt-2\",\n          col === periods.length - 1 && \"pr-4\",\n          selectable && \"cursor-pointer\",\n        )}\n      >\n        <div\n          data-active={isActive || undefined}\n          className={cn(\n            \"relative flex h-8 min-w-[2.125rem] items-center justify-center rounded-[4px] px-0.5 text-xs tabular-nums transition-[opacity,box-shadow] duration-150 motion-reduce:transition-none\",\n            fill == null ? \"bg-muted/40\" : \"text-foreground\",\n            isAverage ? \"font-semibold\" : \"font-medium\",\n            active != null && !inCrosshair && \"opacity-50\",\n            \"data-[active]:z-10 data-[active]:ring-2 data-[active]:ring-foreground/80 data-[active]:ring-offset-1 data-[active]:ring-offset-card\",\n            \"group-focus-visible/cell:z-10 group-focus-visible/cell:ring-2 group-focus-visible/cell:ring-ring group-focus-visible/cell:ring-offset-1 group-focus-visible/cell:ring-offset-card\",\n          )}\n          style={\n            fill == null\n              ? { backgroundImage: hatch }\n              : { backgroundColor: fill, color: inkFor(fill) }\n          }\n        >\n          <span aria-hidden=\"true\">{display(cell)}</span>\n        </div>\n      </td>\n    );\n  };\n\n  const rowHeader = (row: number, label: string, size: number) => {\n    const isActive = active?.row === row;\n    return (\n      <th\n        scope=\"row\"\n        data-active={isActive || undefined}\n        onPointerEnter={() => setHovered(null)}\n        className={cn(\n          \"sticky left-0 z-20 bg-card py-0 pr-2.5 pl-4 text-left font-normal whitespace-nowrap\",\n          \"before:absolute before:inset-y-2 before:left-1.5 before:w-0.5 before:rounded-full before:bg-foreground before:opacity-0 before:transition-opacity data-[active]:before:opacity-100 motion-reduce:before:transition-none\",\n          stickyFade,\n          row === averageRow && \"border-t border-dashed pt-2\",\n        )}\n      >\n        <span className=\"flex items-baseline justify-between gap-3\">\n          <span\n            className={cn(\n              \"text-xs transition-colors motion-reduce:transition-none\",\n              row === averageRow\n                ? \"font-semibold text-foreground\"\n                : \"font-medium text-foreground/80\",\n              isActive && \"text-foreground\",\n            )}\n          >\n            {label}\n          </span>\n          <span className=\"text-[11px] text-muted-foreground tabular-nums\">\n            {formatSize(size)}\n          </span>\n        </span>\n      </th>\n    );\n  };\n\n  return (\n    <div\n      data-slot=\"cohort-grid\"\n      data-mode={mode}\n      className={cn(\n        \"flex min-w-0 flex-col rounded-xl border bg-card text-card-foreground shadow-xs\",\n        className,\n      )}\n      {...props}\n    >\n      {hasHeader ? (\n        <div className=\"flex flex-wrap items-start justify-between gap-x-6 gap-y-3 px-4 pt-4\">\n          <div className=\"min-w-0 space-y-1\">\n            {title != null ? (\n              <h3 className=\"text-sm leading-5 font-semibold tracking-tight\">\n                {title}\n              </h3>\n            ) : null}\n            {description != null ? (\n              <p id={`${id}-description`} className=\"text-xs text-muted-foreground\">\n                {description}\n              </p>\n            ) : null}\n          </div>\n          {actions != null ? (\n            <div className=\"flex shrink-0 items-center gap-2\">{actions}</div>\n          ) : null}\n        </div>\n      ) : null}\n\n      <div\n        ref={scrollRef}\n        data-scrolled={scrolled}\n        className={cn(\n          \"group/scroll relative overflow-x-auto overscroll-x-contain pb-1\",\n          hasHeader ? \"mt-4\" : \"mt-3\",\n        )}\n        onScroll={(event) => setScrolled(event.currentTarget.scrollLeft > 0)}\n      >\n        <table\n          ref={tableRef}\n          role=\"grid\"\n          aria-label={tableLabel}\n          aria-describedby={description != null ? `${id}-description` : undefined}\n          aria-rowcount={rowCount + 1}\n          aria-colcount={periods.length + 1}\n          onKeyDown={onKeyDown}\n          onPointerLeave={() => setHovered(null)}\n          onBlur={(event) => {\n            if (!event.currentTarget.contains(event.relatedTarget as Node))\n              setFocused(null);\n          }}\n          className=\"w-full border-separate border-spacing-0 text-xs\"\n        >\n          <thead onPointerEnter={() => setHovered(null)}>\n            <tr>\n              <th\n                scope=\"col\"\n                className={cn(\n                  \"sticky left-0 z-20 bg-card pr-2.5 pb-1.5 pl-4 text-left align-bottom font-normal whitespace-nowrap\",\n                  stickyFade,\n                )}\n              >\n                <span className=\"flex items-baseline justify-between gap-3 text-[11px] font-medium text-muted-foreground\">\n                  <span>{cohortLabel}</span>\n                  <span>{sizeLabel}</span>\n                </span>\n              </th>\n              {periods.map((period, col) => {\n                const isActive = active?.col === col;\n                return (\n                  <th\n                    key={col}\n                    scope=\"col\"\n                    data-active={isActive || undefined}\n                    style={{ width: `${100 / Math.max(1, periods.length)}%` }}\n                    className={cn(\n                      \"group/col px-0 pb-1.5 text-center align-bottom text-[11px] font-medium whitespace-nowrap text-muted-foreground tabular-nums transition-colors motion-reduce:transition-none\",\n                      \"data-[active]:text-foreground\",\n                      col === periods.length - 1 && \"pr-4\",\n                    )}\n                  >\n                    <span className=\"relative inline-block px-0.5 after:absolute after:inset-x-0.5 after:-bottom-1 after:h-0.5 after:rounded-full after:bg-foreground after:opacity-0 after:transition-opacity group-data-[active]/col:after:opacity-100 motion-reduce:after:transition-none\">\n                      {period}\n                    </span>\n                  </th>\n                );\n              })}\n            </tr>\n          </thead>\n          <tbody>\n            {cohorts.map((cohort, row) => (\n              <tr key={cohort.id}>\n                {rowHeader(row, cohort.label, cohort.size)}\n                {periods.map((_, col) => renderCell(row, col))}\n              </tr>\n            ))}\n          </tbody>\n          {showAverage ? (\n            <tfoot>\n              <tr>\n                {rowHeader(averageRow, resolvedAverageLabel, totalSize)}\n                {periods.map((_, col) => renderCell(averageRow, col))}\n              </tr>\n            </tfoot>\n          ) : null}\n        </table>\n      </div>\n\n      <div className=\"flex flex-wrap items-center justify-between gap-x-6 gap-y-3 border-t px-4 py-3\">\n        <div\n          aria-hidden=\"true\"\n          data-slot=\"cohort-grid-readout\"\n          className=\"flex min-h-8 min-w-0 flex-wrap items-center gap-x-2.5 gap-y-1 text-xs\"\n        >\n          {activeCell ? (\n            <>\n              <span className=\"font-medium text-foreground\">\n                {activeCell.label}\n              </span>\n              <span className=\"rounded-[4px] border px-1.5 py-px font-mono text-[10.5px] text-muted-foreground\">\n                {activeCell.period}\n              </span>\n              {activeCell.value == null ? (\n                <span className=\"text-muted-foreground\">No data yet</span>\n              ) : (\n                <>\n                  <span className=\"text-sm font-semibold tabular-nums\">\n                    {formatDetail(activeCell.value)}\n                  </span>\n                  <span className=\"text-muted-foreground tabular-nums\">\n                    {formatExact(activeCell.retained ?? 0)} of{\" \"}\n                    {formatExact(activeCell.base)} {unit}\n                  </span>\n                </>\n              )}\n            </>\n          ) : (\n            <span className=\"text-muted-foreground\">\n              <span className=\"font-medium text-foreground tabular-nums\">\n                {cohorts.length}\n              </span>{\" \"}\n              cohorts ·{\" \"}\n              <span className=\"font-medium text-foreground tabular-nums\">\n                {formatExact(totalSize)}\n              </span>{\" \"}\n              {unit}\n              <span className=\"hidden sm:inline\"> · hover a cell for detail</span>\n            </span>\n          )}\n        </div>\n\n        {showLegend ? (\n          <div\n            data-slot=\"cohort-grid-legend\"\n            className=\"flex items-center gap-4 text-[10.5px] text-muted-foreground\"\n          >\n            <span className=\"flex items-center gap-1.5\">\n              <span\n                aria-hidden=\"true\"\n                className=\"size-3 rounded-[3px] bg-muted/40 inset-ring inset-ring-foreground/5\"\n                style={{ backgroundImage: hatch }}\n              />\n              Pending\n            </span>\n            <span className=\"flex flex-col gap-1\">\n              <span\n                aria-hidden=\"true\"\n                className=\"block h-2 w-32 rounded-full inset-ring inset-ring-foreground/5\"\n                style={{\n                  backgroundImage: `linear-gradient(to right, ${fillFor(color, 0)}, ${fillFor(color, 0.5)}, ${fillFor(color, 1)})`,\n                }}\n              />\n              <span className=\"flex justify-between font-mono tabular-nums\">\n                <span>{formatCell(low)}</span>\n                <span className=\"sr-only\"> to </span>\n                <span>{formatCell(high)}</span>\n              </span>\n            </span>\n          </div>\n        ) : null}\n      </div>\n    </div>\n  );\n}\n\nexport { CohortGrid };\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/components/cohort-grid. Requires an initialized shadcn/ui project with Tailwind CSS v4."
}
