Video Section React block for Tailwind CSS v4
v1.0.0Added in 1.7.0
A product video block with no video file: a drawn poster whose play button opens an animated, chaptered walkthrough.
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).
Video Section is a Pro React block in the React marketing sections category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add video-section, together with Marketing Section, Avatar, Button, Dialog, useControllableState and 4 more and the npm packages motion and lucide-react.
Built with
The sections this page is made of. In the full-screen preview, hold Alt to outline each one on the page.
Add to a project
Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup
npx wingo-ui@latest add video-sectionVideo Section is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans
Usage
Import VideoSection from @/components/blocks/video-section.
// 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
eyebrowdefault"Product tour"ReactNodeThe small line over the title.
titledefault"See a launch come together in Acme"ReactNodeThe section title.
descriptiondefault"Watch one team plan, write, automate and ship a release, start to finish. Jump to any chapter."ReactNodeThe paragraph under the title.
actionsReactNodeButtons under the heading.
chaptersdefault"VIDEO_SECTION_SAMPLE"VideoSectionChapter[]{ title, description?, start (seconds), scene?, id? }; scene is plan, docs, automate, insights or any node drawn inside the app frame.
mediaReactNodeWhat the dialog shows instead of the drawn walkthrough: a <video>, an embed iframe. It sits in a 16:9 frame.
posterReactNodeReplaces the drawn browser poster behind the play button.
durationdefault150numberThe tour length in seconds: the play pill, the chapter panel and the end of the last chapter.
captiondefault"One launch, from the first task to shipped, in two and a half minutes."ReactNodeThe line under the player.
guideHrefdefault"/docs"stringA link after the caption (labels.guide); empty hides it.
urldefault"app.acme.com/launch"stringThe address in the drawn browser bar.
layoutdefault"centered""centered" | "split" | "chapters"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.
showChaptersdefaulttruebooleanThe chapter cards, list or panel next to the player.
framedefault"browser""browser" | "none"browser: a window bar with dots and the url over the drawn app; none: the app alone.
radiusdefault"lg""md" | "lg" | "xl"The player corners: 16, 24 or 32px (the chapter panel follows).
pulsedefaulttruebooleanA ring that breathes around the play button (off with reduced motion).
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The play button, chapter timestamps, the progress bar and the accents in the drawn app.
colordefault""stringAny CSS color; replaces the tone. Leave empty to use the tone.
aligndefault"center""start" | "center"Where the heading sits (split always starts).
openbooleanThe dialog's open state (controlled).
defaultOpendefaultfalsebooleanThe tour starts open.
onOpenChange(open: boolean) => voidRuns when the dialog opens or closes.
onChapterChange(index: number) => voidRuns when the walkthrough moves to another chapter.
headingSizedefault"md""md" | "lg"lg when the section opens the page.
headingAsdefault"h2""h1" | "h2" | "h3"The title element.
widthdefault"lg""sm" | "md" | "lg" | "xl"The content column: 720, 960, 1200 or 1400px.
backgrounddefault"none""none" | "muted"muted: a gray band that sets the section apart.
spacingdefault"md""none" | "sm" | "md" | "lg"Vertical padding, from MarketingSection.
linkComponentdefault""a""(props: LinkComponentProps) => ReactNodeThe router link (or "a") for the guide link; default the LinkProvider's.
labelsPartial<VideoSectionLabels>watch, chapters, chapterCount ({count}), dialogTitle, dialogDescription, play, pause, replay, previous, next, progress, status ({index}, {total}, {title}), guide.
classNamestringClasses for the <section>.
classNamesPartial<Record<VideoSectionSlot, string>>Classes for layout, figure, player, poster, play, caption, chapters, chapter, walkthrough, stage and controls.
Parts
VIDEO_SECTION_SAMPLE
constantFour Acme chapters: plan the launch, write the spec, automate the handoffs, track what shipped.
DEFAULT_VIDEO_SECTION_LABELS
constantThe English strings.
VideoSectionChapter
type{ title, description?, start, scene?, id? }.
VideoSectionScene
typeThe drawn scenes: plan, docs, automate, insights.
VideoSectionLayout
type"centered" | "split" | "chapters".
VideoSectionFrame
typeThe chrome around the player: "browser" | "none".
VideoSectionRadius
typeThe corner radius of the player: "md" | "lg" | "xl".
VideoSectionLabels
typeThe strings of DEFAULT_VIDEO_SECTION_LABELS.
VideoSectionSlot
typeThe classNames keys.
VideoSectionProps
typeProps 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.
Dependencies
Files
- components/blocks/video-section.tsx
FAQ
Is the React Video Section block free?
The preview, props and docs are free; copying the source needs a Pro plan. See plans.
How do I install Video Section?
Run npx wingo-ui@latest add video-section. It also adds the Wingo UI items it builds on (Marketing Section, Avatar, Button, Dialog, useControllableState and 4 more) and the npm packages motion and lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/video-section.
How does Video Section behave on phones?
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.
See also
Used in
More React marketing sections
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.