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.json

Or, 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

Component props
PropTypeDefaultNotes
videoSrcstring—Your video file. Without it a generated preview plays with captions.
posterSrcstring—Poster image; falls back to generated art.
titlestring'Ship a release in 90 seconds'Thumbnail caption and dialog title.
durationstringpreview lengthThumbnail duration chip.
captionsstring[]4 linesCaption lines for the generated preview.
onOpenChange(open: boolean) => void—Fires when the dialog opens or closes.
classNamestring—Extra classes merged onto the thumbnail wrapper.

Dependencies

  • motion
  • lucide-react
  • 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…

See all 27 Cards components