Black Friday: 30% off Pro

Get 30% off

Updated

Merge Gallery

Pro

Preview

Customize

Duration0.55s
Blur11px
Dim0.60

Installation

Pro

Merge Gallery is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/merge-gallery

Usage

import { MergeGallery } from "@/components/uibrik/merge-gallery/MergeGallery";​<MergeGallery  duration={0.55}  blur={11}  dim={0.6}  loop  // videos={[…]}/>

Where to use Merge Gallery

  • Video showcases

    Six tiles merging into one player turn a gallery into a video in one move.

  • Media sites

    Splitting back apart returns visitors to the grid where they started.

  • Product demos

    Clips merging into one player fit "see it in action" sections.

Props

MergeGallery
duration
Type number
0.55
How long the tiles take to merge and split.
blur
Type number
11
Peak blur while the tiles merge.
dim
Type number
0.6
How dark a tile gets under the pointer.
loop
Type boolean
true
Loop the open video.
videos
Type GalleryVideo[]
SAMPLE_GALLERY_VIDEOS
Exactly six { src, poster } pairs, laid out 3 × 2.
className
Type string
–
Classes for the wrapper.