Plug connect (Pro)
ProIncluded in $99Connecting a server as plugging something in: the plug seats, the cable marches, then turns live.
On this page
ProThe plug slides into the socket and seats with a small push; once the server answers the cable turns live and a pulse runs along it. Refused, it springs back out with the reason.
The app's socket and the server's plug sit apart on one cable. Connecting slides the plug across until its prongs sink into the socket with a small push, and the cable marches while the handshake runs. When the server answers, a ring flashes at the joint, the cable turns green from the joint outward and one pulse of data runs home. Refused, the plug springs back out and the line says why.
Installation
Needs chatcn Pro
This command works with a Pro license, along with every Pro component.
Or start free: sign up and get three Pro components on us, with a new one every month.
Usage
import { PlugConnect } from "@/components/ui/chatcn/pro/plug-connect"
<PlugConnect from="chatcn" to="Linear MCP" status={status} detail={status === "connected" ? "14 tools" : error} onConnect={connect} />Examples
States
ProUnplugged, plugging in while it waits for sign in, connected with its tools, and refused with the reason.
Props
| Prop | Type | Notes |
|---|---|---|
status | "idle" | "connecting" | "connected" | "error" | |
from / to | string | The app and the server |
detail | string | After Connected, or the reason it failed |
onConnect | () => void | Shows Connect, or Try again after an error |
Accessibility
- The status line is a polite
role="status"; the drawing is hidden.
Motion
- The plug slides 480 ms with a 1.5 px overshoot; a refusal springs it back 560 ms. The live cable draws from the joint out with
pathLength. - Reduced motion: the plug and cable change state without moving.