# ConnectMachine

<!-- https://uncage.vercel.app/docs/api/react-ui/functions/connectmachine/ -->

```ts
function ConnectMachine(__namedParameters): Element;
```

Defined in: react-ui/src/components/ConnectMachine.tsx:56

"Connect your computer": the one command to run on the computer (the site's checking installer:
`install.sh` on macOS / Linux, `install.ps1` on Windows, in OS tabs that start on the detected OS),
with a copy button, a secondary `uncage setup <url>` for a computer that already has the CLI, and
a live status row that switches from
"Waiting for your computer…" to "Connected: <name>" once a computer comes online. Polls the
hub every 3 s while shown and the page is visible. Mount it only while it should be visible
(unmounting stops the polling). Connected mode only (needs an Uncage hub).

## Parameters

| Parameter | Type |
| ------ | ------ |
| `__namedParameters` | [`ConnectMachineProps`](https://uncage.vercel.app/docs/api/react-ui/interfaces/connectmachineprops.md) |

## Returns

`Element`
