# Genie Effect (Pro)

> macOS-style minimize: windows pour into the dock along a WebGL mesh.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › Effects |
| Live preview | https://uibrik.com/components/genie-effect |
| Writes | 2 files into `components/uibrik/genie-effect/` |
| Packages | `@tabler/icons-react` (the CLI installs them) |
| Builds on | [squircle](https://uibrik.com/components/squircle.md) (installed with it) |
| 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/genie-effect
```

No license yet? Tell the user Genie Effect is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=genie-effect#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 { GenieDock } from "@/components/uibrik/genie-effect/genie-dock";

const items = [
  {
    id: 1,
    src: "/registry/genie-effect/aurora-ice.webp",
    alt: "Northern lights over glacier ice",
  },
  {
    id: 2,
    src: "/registry/genie-effect/waterfall.webp",
    alt: "Waterfall dropping into a green valley",
  },
  // …3 more
];

<GenieDock
  duration={0.52}
  curvature={0.89}
  pinch={0.72}
  verticalStretch={2}
  meshResolution={100}
  windowSize={450}
  items={items}
/>
```

## Tune it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `duration` | `number` | `0.52` | Length of one minimize or restore. |
| `curvature` | `number` | `0.89` | Bend of the funnel. |
| `pinch` | `number` | `0.72` | How narrow the neck gets. |
| `verticalStretch` | `number` | `2` | Vertical smear during travel. |
| `meshResolution` | `number` | `100` | Rows in the warp mesh. |
| `windowSize` | `number` | `450` | Window size (square). |

## Wire it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `items` | `DockItem[]` | `DOCK_ITEMS` | Images in the dock: id, src, alt. |

## Where it fits

- **Desktop-style web apps**: Windows pouring into the dock make a browser-based desktop feel like macOS.
- **Window-metaphor portfolios**: Minimising projects into a dock is a playful way to browse work.
- **Minimising panels**: A WebGL genie shows where a panel went, so users can find it again.

## Same shelf: Effects

- [Marquee](https://uibrik.com/components/marquee.md): An endless, seamless row of logos, quotes or tags that slows on hover and fades out at the edges.
- [Liquid Glass Lens](https://uibrik.com/components/liquid-glass-lens.md) (Pro): A draggable glass pill that refracts whatever sits underneath it.
- [Lock Melt](https://uibrik.com/components/lock-melt.md) (Pro): Premium content frozen under ice and a steel padlock; rub the ice with the pointer and it wipes clear, then fogs back over. Unlocking heats the lock through dull red, orange and yellow, trembling and shedding embers. At full heat the shackle pops open in a shower of sparks, sags, and melts into WebGL metaball droplets that mirror the content, run down the panel and steam the ice away wherever they pass.
- [Offline Plug](https://uibrik.com/components/offline-plug.md) (Pro): A connection status pill with a shaded plug and power strip. When the network drops, the plug is yanked out in a burst of sparks, falls to the floor and rocks to rest on its simulated cable, then keeps trying to get back in. Drag it into the socket to retry: it stays in with a green light when the connection is back, or gets thrown out again.
- [Paper Shredder](https://uibrik.com/components/paper-shredder.md) (Pro): Drag a document into the slot and the motor pulls it through, out into strips that sway, drop and crumple onto the pile.
- [Sticker Peel](https://uibrik.com/components/sticker-peel.md) (Pro): A vinyl sticker you peel up with a real curl, carry with a swing, stick anywhere or throw, with a foil finish that catches the light under the pointer, many artwork formats and image files dropped in as new stickers.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/genie-effect/` 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
