# Result flip grid

An eval run you can watch land: each case's tile turns over like a card as its result comes back.

Also called: flip grid, flip tiles.

> 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: An eval run you can watch land. Each case turns over like a card as its result comes back, gray to green or red, so the suite finishes as a wave across the grid. Preview: https://chatcn.dev/preview/result-flip-grid-demo

Every case is a tile. As each result comes back its tile turns over like a card, face down gray to face up green with a tick or red with a cross, so a suite finishing reads as a wave crossing the grid. The counts above roll with it. Point at a tile for the case's name.

## Installation

```bash
npx shadcn@latest add @chatcn-pro/result-flip-grid
```

## Usage

```tsx
import { ResultFlipGrid } from "@/components/ui/chatcn/pro/result-flip-grid"

<ResultFlipGrid label="Support intents" cases={cases} columns={12} />
```

## Props

| Prop | Type | Notes |
| --- | --- | --- |
| `cases` | `{ id, name, status: "pending" | "pass" | "fail" }[]` |  |
| `columns` | `number` | Tiles per row. Default 12 |
| `label` | `string` | Suite name above the grid |

## Accessibility

- The counts are one labelled summary; tiles are named by their case.

## Motion

- A 520 ms 3D turn per tile with hidden backfaces. Reduced motion: tiles change colour in place.

Source: https://chatcn.dev/docs/components/result-flip-grid