# Page flip reader

Reading shown as reading: finished pages turn over the spine like a book.

Also called: page flip, book flip.

> 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: Reading, shown as reading. As the agent finishes each page it turns over the spine like a book, and the line beside it says which page is open. Preview: https://chatcn.dev/preview/page-flip-reader-demo

The pages the agent opens sit in a small stack like a book lying open. As it finishes one, that page turns over the spine onto the read side, and the next one is there underneath. The line beside it says which page is open and how far along it is.

## Installation

```bash
npx shadcn@latest add @chatcn-pro/page-flip-reader
```

## Usage

```tsx
import { PageFlipReader } from "@/components/ui/chatcn/pro/page-flip-reader"

<PageFlipReader pages={pages} read={pagesRead} />
```

## Props

| Prop | Type | Notes |
| --- | --- | --- |
| `pages` | `{ id, title, site }[]` |  |
| `read` | `number` | Pages finished; the next one is being read |

## Accessibility

- The book is decorative; the line beside it is a polite live region.

## Motion

- Each page turns 180 degrees over 700 ms with both faces drawn. Reduced motion: pages move without turning.

Source: https://chatcn.dev/docs/components/page-flip-reader