# Ink checklist

A checklist where each tick bleeds in like fountain pen ink.

Also called: todo list animation, animated checkbox, checklist 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: Ticks that bleed like ink. The agent ticks a step and ink bleeds into the box from the nib point, a pen line strikes the words, and the row sinks into Done. Preview: https://chatcn.dev/preview/ink-checklist-demo

Ticking a box lets ink bleed into it from the nib point, its wet edge noisy and feathering a hair past the border, before a tick draws through it. A hand drawn line strikes the words, each a slightly different hand, and the row sinks into Done on a spring while the counts roll. Unticking lifts the ink and the row rises back to its place. Good for an agent's plan as it works through it.

## Installation

```bash
npx shadcn@latest add @chatcn-pro/ink-checklist
```

## Usage

```tsx
import { InkChecklist } from "@/components/ui/chatcn/pro/ink-checklist"

<InkChecklist title="Agent plan" items={steps} done={done} onDoneChange={setDone} />
```

## Props

| Prop | Type | Notes |
| --- | --- | --- |
| `items` | `{ id, label, meta? }[]` |  |
| `done` / `defaultDone` / `onDoneChange` | `string[]` | Most recent first |
| `title` / `description` | `ReactNode` |  |
| `ink` | `string` | Any CSS colour; default the theme blue |

## Accessibility

- Each box is a checkbox button labelled with its step; the count reads as a whole.

## Motion

- Ink spreads in 900 ms, the strike in 380 ms after 240 ms, rows glide on a spring. Reduced motion: ink and rows change at once.

Source: https://chatcn.dev/docs/components/ink-checklist