# Video Section

> A product video block with no video file: a drawn poster whose play button opens an animated, chaptered walkthrough.

- Type: React block (Marketing Sections)
- Access: Pro (the source needs a Wingo UI Pro plan, see https://wingo-ui.com/pricing)
- Version: 1.0.0
- Install: `npx wingo-ui@latest add video-section`
- Docs: https://wingo-ui.com/components/video-section

## Interaction

The poster is a browser window drawn in code with a small Acme board inside, a round play button and a "Watch the tour" pill with the length; the ring around the play button breathes (off with reduced motion or pulse off). Click or tap the poster (Enter or Space on the keyboard) to open the tour in a dialog, a bottom sheet below 768px; clicking a chapter opens it at that chapter. With no media the dialog plays a drawn walkthrough: each chapter animates its own scene (cards move on the board, a spec writes itself, an automation runs step by step, a chart grows), a segmented bar fills and the clock counts through the chapter's real timestamps, then it moves to the next chapter and offers Replay at the end. Previous, play / pause and next buttons sit under the stage, the chapter list beside it (under it on phones) jumps to any chapter, and the arrow keys skip chapters while K plays or pauses. Chapter changes are announced to screen readers. With reduced motion the tour starts paused and scenes appear without movement. Escape, the close button or a drag down on the sheet close it and focus returns to what opened it. Layouts: centered puts chapter cards under the player; split keeps the heading and a chapter list beside the player; chapters places a chapter panel with descriptions next to the player (under it on phones).

## Installation

```bash
npx wingo-ui@latest add video-section
```

Pro item: run `npx wingo-ui@latest login` once with a Pro account. The CLI adds the files, their dependencies and a version record for updates.

With shadcn: `npx shadcn@latest add @wingo-ui/video-section` (needs the @wingo-ui registry with your API key in components.json)

Files:

- `components/blocks/video-section.tsx`

npm dependencies: `npm i motion lucide-react`

Wingo UI dependencies (installed automatically):

- [Marketing Section](https://wingo-ui.com/components/marketing-section) ([Markdown](https://wingo-ui.com/components/marketing-section.md))
- [Avatar](https://wingo-ui.com/components/avatar) ([Markdown](https://wingo-ui.com/components/avatar.md))
- [Button](https://wingo-ui.com/components/button) ([Markdown](https://wingo-ui.com/components/button.md))
- [Dialog](https://wingo-ui.com/components/dialog) ([Markdown](https://wingo-ui.com/components/dialog.md))
- [useControllableState](https://wingo-ui.com/components/use-controllable-state) ([Markdown](https://wingo-ui.com/components/use-controllable-state.md))
- [Motion presets](https://wingo-ui.com/components/motion) ([Markdown](https://wingo-ui.com/components/motion.md))
- [Navigation](https://wingo-ui.com/components/navigation) ([Markdown](https://wingo-ui.com/components/navigation.md))
- [Tones](https://wingo-ui.com/components/tones) ([Markdown](https://wingo-ui.com/components/tones.md))
- [UIProvider](https://wingo-ui.com/components/ui-config) ([Markdown](https://wingo-ui.com/components/ui-config.md))

## Usage

```tsx
// app/(marketing)/product/page.tsx
"use client"

import Link from "next/link"
import { VideoSection, VIDEO_SECTION_SAMPLE } from "@/components/blocks/video-section"

export default function ProductPage() {
  return (
    <VideoSection
      layout="chapters"
      chapters={VIDEO_SECTION_SAMPLE}
      duration={150}
      // leave media out to play the drawn walkthrough
      media={<video src="/tour.mp4" controls autoPlay className="size-full object-cover" />}
      linkComponent={Link}
    />
  )
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `eyebrow?` | `ReactNode` | `"Product tour"` | The small line over the title. |
| `title?` | `ReactNode` | `"See a launch come together in Acme"` | The section title. |
| `description?` | `ReactNode` | `"Watch one team plan, write, automate and ship a release, start to finish. Jump to any chapter."` | The paragraph under the title. |
| `actions?` | `ReactNode` |  | Buttons under the heading. |
| `chapters?` | `VideoSectionChapter[]` | `"VIDEO_SECTION_SAMPLE"` | { title, description?, start (seconds), scene?, id? }; scene is plan, docs, automate, insights or any node drawn inside the app frame. |
| `media?` | `ReactNode` |  | What the dialog shows instead of the drawn walkthrough: a <video>, an embed iframe. It sits in a 16:9 frame. |
| `poster?` | `ReactNode` |  | Replaces the drawn browser poster behind the play button. |
| `duration?` | `number` | `150` | The tour length in seconds: the play pill, the chapter panel and the end of the last chapter. |
| `caption?` | `ReactNode` | `"One launch, from the first task to shipped, in two and a half minutes."` | The line under the player. |
| `guideHref?` | `string` | `"/docs"` | A link after the caption (labels.guide); empty hides it. |
| `url?` | `string` | `"app.acme.com/launch"` | The address in the drawn browser bar. |
| `layout?` | `"centered" \| "split" \| "chapters"` | `"centered"` | centered: the player under the heading with chapter cards below; split: the heading and a chapter list on the left, the player on the right (stacked on phones); chapters: the player with a raised chapter panel beside it from 1024px. |
| `showChapters?` | `boolean` | `true` | The chapter cards, list or panel next to the player. |
| `frame?` | `"browser" \| "none"` | `"browser"` | browser: a window bar with dots and the url over the drawn app; none: the app alone. |
| `radius?` | `"md" \| "lg" \| "xl"` | `"lg"` | The player corners: 16, 24 or 32px (the chapter panel follows). |
| `pulse?` | `boolean` | `true` | A ring that breathes around the play button (off with reduced motion). |
| `tone?` | `"neutral" \| "brand" \| "success" \| "warning" \| "danger" \| "info"` | `"neutral"` | The play button, chapter timestamps, the progress bar and the accents in the drawn app. |
| `color?` | `string` | `""` | Any CSS color; replaces the tone. Leave empty to use the tone. |
| `align?` | `"start" \| "center"` | `"center"` | Where the heading sits (split always starts). |
| `open?` | `boolean` |  | The dialog's open state (controlled). |
| `defaultOpen?` | `boolean` | `false` | The tour starts open. |
| `onOpenChange?` | `(open: boolean) => void` |  | Runs when the dialog opens or closes. |
| `onChapterChange?` | `(index: number) => void` |  | Runs when the walkthrough moves to another chapter. |
| `headingSize?` | `"md" \| "lg"` | `"md"` | lg when the section opens the page. |
| `headingAs?` | `"h1" \| "h2" \| "h3"` | `"h2"` | The title element. |
| `width?` | `"sm" \| "md" \| "lg" \| "xl"` | `"lg"` | The content column: 720, 960, 1200 or 1400px. |
| `background?` | `"none" \| "muted"` | `"none"` | muted: a gray band that sets the section apart. |
| `spacing?` | `"none" \| "sm" \| "md" \| "lg"` | `"md"` | Vertical padding, from MarketingSection. |
| `linkComponent?` | `(props: LinkComponentProps) => ReactNode` | `"\"a\""` | The router link (or "a") for the guide link; default the LinkProvider's. |
| `labels?` | `Partial<VideoSectionLabels>` |  | watch, chapters, chapterCount ({count}), dialogTitle, dialogDescription, play, pause, replay, previous, next, progress, status ({index}, {total}, {title}), guide. |
| `className?` | `string` |  | Classes for the <section>. |
| `classNames?` | `Partial<Record<VideoSectionSlot, string>>` |  | Classes for layout, figure, player, poster, play, caption, chapters, chapter, walkthrough, stage and controls. |

## Parts

### VIDEO_SECTION_SAMPLE (constant)

Four Acme chapters: plan the launch, write the spec, automate the handoffs, track what shipped.

### DEFAULT_VIDEO_SECTION_LABELS (constant)

The English strings.

### VideoSectionChapter (type)

{ title, description?, start, scene?, id? }.

### VideoSectionScene (type)

The drawn scenes: plan, docs, automate, insights.

### VideoSectionLayout (type)

"centered" | "split" | "chapters".

### VideoSectionFrame (type)

The chrome around the player: "browser" | "none".

### VideoSectionRadius (type)

The corner radius of the player: "md" | "lg" | "xl".

### VideoSectionLabels (type)

The strings of DEFAULT_VIDEO_SECTION_LABELS.

### VideoSectionSlot (type)

The classNames keys.

### VideoSectionProps (type)

Props of VideoSection.

## Examples

- **Centered with chapter cards**: The poster under the heading and four chapter cards below; each card opens the tour at its chapter.
- **Split, brand tone**: The heading, a call to action and a chapter list on the left, the player on the right.
- **Player with a chapter panel**: A raised panel of numbered chapters with descriptions and timestamps beside the player, on a gray band.
- **Short clip, no chapters**: Two chapters, no list and no browser bar, in a custom color for a feature page.

## See also

- [Video Player](https://wingo-ui.com/components/video-player) ([Markdown](https://wingo-ui.com/components/video-player.md))
- [Dialog](https://wingo-ui.com/components/dialog) ([Markdown](https://wingo-ui.com/components/dialog.md))
- [Feature Showcase](https://wingo-ui.com/components/feature-showcase) ([Markdown](https://wingo-ui.com/components/feature-showcase.md))
- [Marketing Section](https://wingo-ui.com/components/marketing-section) ([Markdown](https://wingo-ui.com/components/marketing-section.md))
- [Hero Section](https://wingo-ui.com/components/hero-section) ([Markdown](https://wingo-ui.com/components/hero-section.md))

---

Canonical: https://wingo-ui.com/components/video-section
More components: https://wingo-ui.com/components · Index for agents: https://wingo-ui.com/llms.txt
