Measured entry
magicui-hero-video-dialog
hero-effect3dmotion on file
A client-side React thumbnail that opens an embedded video in an animated full-screen overlay. It ships as a shadcn registry component and relies on Tailwind utility classes, the shared cn helper, Motion for transitions, and Lucide for its play and close icons.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 69.6 KB (135.0 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 4.45s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/hero-video-dialog.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A solid visual starting point that built, mounted, and stayed within its tested viewports. It needs a shadcn-style setup, and teams with strict modal accessibility requirements should add proper dialog behavior and focus management before shipping.
Use it if
- You need a hero thumbnail that launches an iframe video without navigating away.
- Your app already uses shadcn conventions, Tailwind utilities, Motion, and Lucide icons.
- You want selectable entrance and exit directions without designing the animation states yourself.
Skip it if
- You need full dialog semantics, focus trapping, focus restoration, or background scroll locking out of the box.
- You want a native video element rather than content hosted in an iframe.
- You are minimizing animation and icon dependencies for a single video trigger.
Install
| Declared dependencies | motion |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add Tailwind with the expected theme tokens, Motion, Lucide React, and a compatible cn class-merging helper. Configure the source alias or replace that import, mark the component for client rendering where required, and supply permitted thumbnail and iframe URLs.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/magicuidesign/magicuiAlternatives
Other published entries for the hero-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- ruixen-hero-title-animationunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 18.7KB
- Bare
- pass
- Prov
- NO
- tripled-glassmorphism-hero-block-shadcnuiglassmorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 30.4KB
- Bare
- fail
- Prov
- NO
- cultui-three-d-carousel3d
- Renders
- YES
- A11y
- 0
- Gzip
- 61.2KB
- Bare
- fail
- Prov
- NO
- ruixen-card-carousel-herounclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 63.3KB
- Bare
- fail
- Prov
- NO
- fancy-circling-elements3d
- Renders
- YES
- A11y
- 0
- Gzip
- 66.5KB
- Bare
- fail
- Prov
- NO
- motion-primitives-spotlightgradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 67.8KB
- Bare
- fail
- Prov
- NO