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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of magicui-hero-video-dialog at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-hero-video-dialog at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-hero-video-dialog at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for magicui-hero-video-dialog
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal69.6 KB (135.0 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for magicui-hero-video-dialog
Declared dependenciesmotion
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

License
MIT
Record published
2026-08-13

Alternatives

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.