# YouTube Intro

Channel opener: the channel mark, then the video's title, joined by an accent sweep.

```bash
npx shadcn add https://www.reelcn.dev/r/youtube-intro.json
```

Usage:

```tsx
<Composition
  id="YoutubeIntro"
  component={YoutubeIntro}
  schema={youtubeIntroSchema}
  defaultProps={youtubeIntroDefaults}
  calculateMetadata={youtubeIntroMetadata}
  width={1920}
  height={1080}
  fps={30}
  durationInFrames={1}
/>
```

Use for:

- The first seconds of a YouTube video or a series episode

Avoid:

- End cards. Use `youtube-outro`

Dependencies:

- `zod`


## Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| channel | `string` | — |  |
| title | `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. |
| logo? | `string` | — | Channel logo image. Falls back to `brand.logo`, then to the channel name alone. |