# Merge Gallery (Pro)

> Six tiles that merge into one video player, and split back apart.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › Media |
| Live preview | https://uibrik.com/components/merge-gallery |
| Writes | 1 file into `components/uibrik/merge-gallery/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/merge-gallery
```

No license yet? Tell the user Merge Gallery is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=merge-gallery#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { MergeGallery } from "@/components/uibrik/merge-gallery/MergeGallery";

<MergeGallery
  duration={0.55}
  blur={11}
  dim={0.6}
  loop
  // videos={[…]}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/merge-gallery.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `duration` | `number` | `0.55` | How long the tiles take to merge and split. |
| `blur` | `number` | `11` | Peak blur while the tiles merge. |
| `dim` | `number` | `0.6` | How dark a tile gets under the pointer. |
| `loop` | `boolean` | `true` | Loop the open video. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `videos` | `GalleryVideo[]` | `SAMPLE_GALLERY_VIDEOS` | Exactly six { src, poster } pairs, laid out 3 × 2. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

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

## Same shelf: Media

- [Podcast Chapters](https://uibrik.com/components/podcast-chapters.md): An episode player whose waveform is split into chapters: the played part fills behind the playhead, the line being spoken writes itself in behind a two-colour gradient trail that settles into the text colour, hovering the waveform previews the time and chapter under the pointer, and the playhead drags with a grip that reads out where it will land. The transcript opens into a full list that follows along and seeks on click, bookmarks drop pins on the waveform, and the chapter list lights its stretch of the waveform on hover and fills as it plays; pass a src to drive it from real audio.
- [Compare Slider](https://uibrik.com/components/compare-slider.md): A before-and-after frame that sweeps in on first view, with a smooth draggable divider, keyboard support and labels that step aside.
- [Folder Peek](https://uibrik.com/components/folder-peek.md): A folder whose file previews rise and fan out on hover, fly out into a list when opened, and that takes files dropped onto it.
- [Music Player](https://uibrik.com/components/music-player.md) (Pro): Compact player with a sliding cover stack, rolling time and a progress ring.
- [Aspect Crop](https://uibrik.com/components/aspect-crop.md) (Pro): A photo crop frame that springs between aspect ratios, or resizes freely by its handles in Custom, while the photo stays covered and centred under it, with drag to move, pinch to zoom and rule-of-thirds lines that show only while adjusting.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/merge-gallery/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
