# Post to Video

Turns one social post into a vertical video: the post card builds in, its text reveals and its counts climb.

```bash
npx shadcn add https://www.reelcn.dev/r/post-to-video.json
```

Usage:

```tsx
<Composition
  id="PostToVideo"
  component={PostToVideo}
  schema={postToVideoSchema}
  defaultProps={postToVideoDefaults}
  calculateMetadata={postToVideoMetadata}
  width={1080}
  height={1920}
  fps={30}
  durationInFrames={1}
/>
```

Use for:

- Reposting a popular post as a short
- Quoting a customer's public post in a video

Avoid:

- Several posts in a row. Use `storyboard` with post scenes

Dependencies:

- `zod`


## Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| author | `string` | — |  |
| text | `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. |
| handle? | `string` | — |  |
| avatar? | `string` | — | Avatar image. Initials are drawn when omitted. |
| metrics? | `{ likes?: number; comments?: number; shares?: number; }` | — |  |