Connection State
Clear connected, reconnecting, resumed, and offline states for resumable agent streams.
Reconnecting
The run continues safely on the server
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/connection-state.jsonAPI reference
Connection State
| Prop | Type | Default | Description |
|---|---|---|---|
state | connected | offline | reconnected | reconnecting | — | Selects the connection state and message. |
detail | string | — | Adds recovery or server-state context. |
onRetry | () => void | — | Retries an offline connection. |