# Connection List

> The services you are connected to: mark with state dot, the connected account, how fresh the data is (a compact SyncStatus) and Manage, or Reconnect for a connection that needs attention.

Component · Connectors · Pro kit · [Live page](https://ui.twentyfirst.media/pro/components/ConnectionList/)

The services you are connected to: mark with state dot, the connected account, how fresh the data
is (a compact `SyncStatus`) and Manage, or Reconnect for a connection that needs attention. On
narrow screens the sync line moves under the name.

## Example

```tsx
import { ConnectionList, Panel } from "@twentyfirstmedia/pro";
import "./_connectors";

const now = new Date(2026, 10, 14, 9, 30);
const ago = (m: number) => new Date(now.getTime() - m * 60000);

export default function Preview() {
  return (
    <Panel title="Connected" subtitle="5 services" style={{ maxWidth: 720 }}>
      <ConnectionList
        now={now}
        onManage={() => {}}
        onReconnect={() => {}}
        items={[
          {
            id: "gmail",
            name: "Gmail",
            icon: "brandGmail",
            account: "mara@gmail.com",
            state: "connected",
            sync: { state: "synced", last: ago(6) },
          },
          {
            id: "spotify",
            name: "Spotify",
            icon: "brandSpotify",
            account: "Mara Ellis",
            state: "syncing",
            sync: { state: "syncing", last: ago(30) },
          },
          {
            id: "health",
            name: "Apple Health",
            icon: "brandApplehealth",
            account: "Mara's iPhone",
            state: "connected",
            sync: { state: "synced", last: ago(18) },
          },
          {
            id: "n26",
            name: "N26",
            icon: "brandN26",
            account: "Main ••• 7781",
            state: "error",
            sync: { state: "error", last: ago(26 * 60) },
          },
          {
            id: "pccaddie",
            name: "PCCADDIE",
            icon: "brandPccaddie",
            account: "GC Hamburg-Walddörfer",
            state: "paused",
            sync: { state: "paused", last: ago(9 * 24 * 60) },
          },
        ]}
      />
    </Panel>
  );
}
```

## Props

### ConnectionList

| Prop | Type | Notes |
| --- | --- | --- |
| `items` | `ConnectionItem[]` | Required |
| `now?` | `Date \| string \| number` | "Now" for the relative times; pass it so server and client render the same. |
| `onManage?` | `(id: string) => void` |  |
| `onReconnect?` | `(id: string) => void` | Shown instead of "Manage" on connections in the `error` state. |
| `label?` | `string` | Accessible name (default "Connections"). |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### Panel

| Prop | Type | Notes |
| --- | --- | --- |
| `side?` | `boolean` |  |
| `title?` | `string` |  |
| `subtitle?` | `string` |  |
| `action?` | `ReactNode` |  |
| `children?` | `ReactNode` |  |
| `surface?` | `Surface` | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
