195 Pro components and page blocks

Get Pro

Updated

Patch Bay

Pro

Preview

Customize

Sag0.50
Cable width5px
Snap56px
Colour
Accent
Accent
Glow0.60

Installation

Pro

Patch Bay 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/patch-bay

Usage

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={<…/>}/>

Where to use Patch Bay

  • Integration sections

    Plugging a cable into an app is a clearer picture of connecting it than another grid of logos.

    Pairs with Integration Orbit

  • 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

  • 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

Props

PatchBay
sag
Type number
0.5
How heavily the cables hang.
cableWidth
Type number
5
Cable thickness.
snap
Type number
56
How close to a jack a dropped plug has to land to go in.
payload
Type boolean
true
Show the latest connection's first event under the board.
tone
Type "color" | "mono"
"color"
Logos in their own colours, or grey until connected.
accent
Type string
"#3b82f6"
Colour of the wires, a lit lamp and the jack a plug is about to go into.
wire
Type "accent" | "brand"
"accent"
Wires in shades of the accent, or blending into each app's brand colour.
glow
Type number
0.6
Strength of the glow around each wire.
flow
Type boolean
true
Strips of light flow along connected wires.
integrations
Type { 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
Type string[]
["slack"]
Ids of the connected apps, controlled or uncontrolled. Ids default to the name in lower case.
onConnectedChange
Type (ids: string[]) => void
–
Called when a cable is plugged in or pulled out.
source
Type ReactNode
–
Your logo, in the source tile.
sourceLabel
Type string
"Your app"
Name under your logo.
emptyText
Type string
"Drag a cable to an app"
Shown in the event panel before anything is connected.
label
Type string
"Integrations"
Names the board for screen readers.
className
Type string
–
Classes for the wrapper.