Video Lightbox Dialog
A cinematic thumbnail with a clear-glass play button that grows into a focused player on a shared-layout spring while the page blurs back. Bring your own video, or use the generated preview with captions.
Try it: Press play — the frame grows into a dialog; Esc or the close button returns.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/video-lightbox-dialog.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/video-lightbox-dialog. You can also copy the source into components/ui/video-lightbox-dialog.tsx (view on GitHub).
Usage
import { VideoLightboxDialog } from '@/components/ui/video-lightbox-dialog'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
videoSrc | string | — | Your video file. Without it a generated preview plays with captions. |
posterSrc | string | — | Poster image; falls back to generated art. |
title | string | 'Ship a release in 90 seconds' | Thumbnail caption and dialog title. |
duration | string | preview length | Thumbnail duration chip. |
captions | string[] | 4 lines | Caption lines for the generated preview. |
onOpenChange | (open: boolean) => void | — | Fires when the dialog opens or closes. |
className | string | — | Extra classes merged onto the thumbnail wrapper. |
Dependencies
motionlucide-react
Related Cards components
- Editorial Spread Card
A magazine cover on real CSS 3D: hover and it lifts off its spine, click and it swings open on a hinge while the issue slides to centre, revealing a two-page spread with a pull quote, deck and…
- Neon Halo Card
A card rimmed by a slow sweep of coloured light: a conic gradient travels a hairline edge while a soft bloom breathes behind it, and the pointer pulls a quiet spotlight across the surface.…
- Swipe Carousel Post
An Instagram-style multi-slide post card: drag or swipe the media and the track snaps on a spring, a segmented bar fills with slide progress, the dot pager shrinks toward the edges and a double-tap…
- Device Frame
Generic, logo-free device chrome for product shots: a browser with a frosted toolbar and centred address field, or a phone with a machined two-tone rim, punch-hole camera, status bar and floating…
- Folder Fan Showcase
Social post cards wait inside a frosted-glass folder, peeking over the rim of a blurred front pocket. Hover or focus and they rise and fan out on staggered springs; pick one and it lifts clear of…
- Feature Bento Grid
An asymmetric grid of feature tiles with generated art. Hover or focus a tile: it lifts, a hairline light follows the pointer around its edge, the art drifts up and a call-to-action rises. CTAs stay…