# Ai Generation

A prompt types into a neutral input, then morphs into a skeleton loader and flips into result cards. One continuous rect drives the box, a 3D flip drives the cards.

```bash
npx shadcn add https://www.reelcn.dev/r/ai-generation.json
```

Usage:

```tsx
<Composition
  id="AiGeneration"
  component={AiGeneration}
  schema={aiGenerationSchema}
  defaultProps={aiGenerationDefaults}
  calculateMetadata={aiGenerationMetadata}
  width={1920} height={1080} fps={30} durationInFrames={1}
/>
```

Use for:

- An AI product's core generate-and-see-results loop
- Any "type a prompt, get structured results" launch demo

Avoid:

- A branded chat-bubble look. This stays neutral (no ChatGPT-style chrome)

Dependencies:

- `remotion`
- `zod`


## Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| prompt | `string` | — |  |
| resultCards | `{ title: string; metric: string; }[]` | — |  |
| theme? | `"daylight" \| "midnight" \| "mono" \| "ledger" \| "afterglow" \| "chromewave" \| "neon" \| "paper" \| "sunset"` | — | Theme preset. Inherits the surrounding `ThemeProvider` when omitted. |
| brand? | `{ accent?: string; logo?: string; font?: string; }` | — |  |
| sfx? | `boolean` | — | Plays a soft whoosh as each scene starts. |
| music? | `string` | — | Background music file, looped under everything at 25% volume. |