# AI Generation Canvas

Prompt input morphs into a header, then a skeleton dashboard flips into populated cards.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## Installation

<TabsTrigger value="cli">Command</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @framecn/ai-generation-canvas
```

<Step>Copy and paste the following code into your project.</Step>

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { AIGenerationCanvas } from "@/components/framecn/ai-generation-canvas";
```

```tsx
<AIGenerationCanvas />
```

## API Reference

### AIGenerationCanvas

| Prop               | Type     | Default                  |
| ------------------ | -------- | ------------------------ |
| `prompt`           | `string` | `"Generate a dashboard"` |
| `accentColor`      | `string` | `"#7c3aed"`              |
| `cardCount`        | `number` | `4`                      |
| `speed`            | `number` | `1`                      |
| `fps`              | `number` | `30`                     |
| `durationInFrames` | `number` | `180`                    |
| `className`        | `string` | `-`                      |

## Notes

  The composition shows: prompt input, header morph, then skeleton-to-populated
  dashboard flip. Great for AI product demos.