# Patch Bay (Pro)

> An integrations switchboard: drag a glowing, weighted cable from your app's jack into an app to connect it, see the first event it would send, and pull it out to disconnect.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › Feature Sections |
| Live preview | https://uibrik.com/components/patch-bay |
| Writes | 1 file into `components/uibrik/patch-bay/` |
| 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 18, 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/patch-bay
```

No license yet? Tell the user Patch Bay is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=patch-bay#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 { PatchBay } from "@/components/uibrik/patch-bay/patch-bay";

<PatchBay
  sag={0.5}
  cableWidth={5}
  snap={56}
  payload
  tone="color"
  accent="#3b82f6"
  wire="accent"
  glow={0.6}
  flow
  defaultConnected={["slack"]}
  sourceLabel="Your app"
  emptyText="Drag a cable to an app"
  label="Integrations"
  onConnectedChange={(ids) => {}}
  // integrations={[{ name: "…" }]}
  // connected={["…"]}
  // source={<…/>}
/>
```

## Tune it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `sag` | `number` | `0.5` | How heavily the cables hang. |
| `cableWidth` | `number` | `5` | Cable thickness. |
| `snap` | `number` | `56` | How close to a jack a dropped plug has to land to go in. |
| `payload` | `boolean` | `true` | Show the latest connection's first event under the board. |
| `tone` | `"color" \| "mono"` | `"color"` | Logos in their own colours, or grey until connected. |
| `accent` | `string` | `"#3b82f6"` | Colour of the wires, a lit lamp and the jack a plug is about to go into. |
| `wire` | `"accent" \| "brand"` | `"accent"` | Wires in shades of the accent, or blending into each app's brand colour. |
| `glow` | `number` | `0.6` | Strength of the glow around each wire. |
| `flow` | `boolean` | `true` | Strips of light flow along connected wires. |

## Wire it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `integrations` | `{ id?: string; name: string; src?: string; srcDark?: string; icon?: ReactNode; payload?: [string, string][]; color?: string }[]` | `SAMPLE_INTEGRATIONS` | Apps on the board. payload is the first event the app sends, as key and value pairs; color is the brand colour the wire blends into when wire is brand. |
| `connected / defaultConnected` | `string[]` | `["slack"]` | Ids of the connected apps, controlled or uncontrolled. Ids default to the name in lower case. |
| `onConnectedChange` | `(ids: string[]) => void` |  | Called when a cable is plugged in or pulled out. |
| `source` | `ReactNode` |  | Your logo, in the source tile. |
| `sourceLabel` | `string` | `"Your app"` | Name under your logo. |
| `emptyText` | `string` | `"Drag a cable to an app"` | Shown in the event panel before anything is connected. |
| `label` | `string` | `"Integrations"` | Names the board for screen readers. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Integration sections**: Plugging a cable into an app is a clearer picture of connecting it than another grid of logos. Pairs with [Integration Orbit](https://uibrik.com/components/integration-orbit.md) (Pro).
- **Onboarding steps**: Controlled connections let a setup screen show which tools are linked and link more with one drag or tap. Pairs with [MCP Connectors](https://uibrik.com/components/mcp-connectors.md) (Pro).
- **Webhook and event docs**: Each connection shows the first event that app sends, so readers see the payload before the docs. Pairs with [Code Block](https://uibrik.com/components/code-block.md).

## Same shelf: Feature Sections

- [Stacked Steps](https://uibrik.com/components/stacked-steps.md) (Pro): A looping deck of how-it-works cards, each a duotone icon, a title and a line, where the front card flies out a different side each step, left, right, up, down, and tucks away to the back every few seconds. Pointing at it holds the deck and fans the cards out from the right towards the top.
- [Benchmark Race](https://uibrik.com/components/benchmark-race.md) (Pro): Benchmark bars that race to their results on view with numbers counting alongside; tabs switch the measure, bars travel straight to new lengths and rows re-sort so the best result leads.
- [Comparison Table](https://uibrik.com/components/comparison-table.md) (Pro): Your product against the alternatives, feature by feature: your column stands up as a card from its logo to its button, checks draw in row by row as the table scrolls into view, and a soft band glides from row to row under the pointer.
- [Exploded View](https://uibrik.com/components/exploded-view.md) (Pro): A product drawn as a stack of isometric layers that pulls apart as it scrolls into view; pointing at a layer lifts everything above it away and names what that layer does.
- [Feature Morph](https://uibrik.com/components/feature-morph.md) (Pro): A row of icon tiles with one feature open in the middle as a card; every few seconds the card folds back into its icon and the next icon grows into the card.
- [Icon Hive](https://uibrik.com/components/icon-hive.md) (Pro): An integrations block: a field of soft tiles around your logo with app logos scattered across it: tiles grow in ring by ring, icons hop between tiles or a wave rolls out, and tiles swell under the pointer.

## Ground rules

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