# Cell fill wave

A table an agent fills in, where each value lands with a wash as it arrives.

Also called: table fill animation.

> chatcn Pro: needs a Pro license (https://chatcn.dev/pro). Install from the `@chatcn-pro` registry with your license token; setup at https://chatcn.dev/docs/chatcn-pro.

Example: Watch the table fill. Empty cells wait as faint bars, the one being worked on scans blue, and each value lands with a blue wash as it rises into place, crossing the table as a wave. Preview: https://chatcn.dev/preview/cell-fill-wave-demo

Empty cells wait as faint bars. The cell being worked on gets an outline and a scanning bar, and as each value lands its cell flashes a wash that fades while the value rises into place. Filled in order, the landings cross the table as a wave; the count and a thin bar above keep score.

## Installation

```bash
npx shadcn@latest add @chatcn-pro/cell-fill-wave
```

## Usage

```tsx
import { CellFillWave } from "@/components/ui/chatcn/pro/cell-fill-wave"

<CellFillWave columns={columns} rows={rows} working={["northwind:hq"]} />
```

## Props

| Prop | Type | Notes |
| --- | --- | --- |
| `columns` | `{ key, label, align?: "start" | "end" }[]` |  |
| `rows` | `{ id, label, cells: Record<string, string | null> }[]` | Null while it is still being found |
| `working` | `string[]` | "rowId:columnKey". Default: the first empty cell |
| `label` | `string` | Header over the row labels |

## Accessibility

- A real table with row and column headers; the count is a polite status.

## Motion

- A 900 ms wash and a 420 ms rise per cell. Reduced motion: values appear.

Source: https://chatcn.dev/docs/components/cell-fill-wave