Hero Video Dialog
Hero Video Dialog presents a thumbnail that reveals an embedded video surface.
Practical React example
Open a product video from a clearly labelled thumbnail.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/hero-video-dialog.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: motion.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Open a product video from a clearly labelled thumbnail
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { HeroVideoDialog } from "@/components/magicui/hero-video-dialog"
export function ComponentExample() {
return (
<HeroVideoDialog
className="block dark:hidden"
animationStyle="from-center"
videoSrc="https://www.example.com/dummy-video"
thumbnailSrc="https://www.example.com/dummy-thumbnail.png"
thumbnailAlt="Dummy Video Thumbnail"
/>
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Use a real embeddable videoSrc and a descriptive thumbnailAlt. Decide which providers and origins your application permits before accepting a dynamic URL.
Customization
- HeroVideoProps.animationStyle
- Optional; AnimationStyle.
- HeroVideoProps.videoSrc
- Required; string.
- HeroVideoProps.thumbnailSrc
- Required; string.
- HeroVideoProps.thumbnailAlt
- Optional; string.
- HeroVideoProps.className
- Optional; string.
Integration notes
- Add captions or a transcript through the chosen player or provider; a thumbnail does not supply video accessibility.
- Test dismissal, focus return, autoplay behavior and third-party cookie implications for your chosen embed.
Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.