Loading component…
Loading component…
This component has not been implemented locally yet.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import AIChat/Progress from ./agent-chat-progress.
import { AgentChatProgressScreen } from "@/components/ui/agent-chat-progress";
export default function Page() {
return <AgentChatProgressScreen workspace="Acme" user={{ name: "Alex Morgan" }} onNavigate={(label) => router.push(routes[label])} />;
}| Name | Type | Default | Description |
|---|---|---|---|
| onNavigate | (label: string) => void | Called with the label of a sidebar item – and with Folders from an output | |
| workspace | string | "Acme" | Workspace name in the sidebar |
| user | { name: string; avatar?: string } | { name: "Alex Morgan" } | Account at the bottom of the sidebar |
| loading | boolean | While the chat loads from history: gray placeholders for the messages, the tool calls, the steps, the outputs and what was used, in the shape of the real ones (the shared Skeleton) – the composer and the panel's sections stay, sending waits until it has landed | |
| empty | boolean | No chat yet: the sidebar lists no chats, the thread shows “No chats yet” with a short line and a Start a chat button (onNavigate("New chat")), Progress says no steps yet and Outputs and Used in this session stay away; the composer stays and sending waits; loading wins when both are on | |
| className | string | Extra class on the root |
The panel is part of the page, split from the chat by a line; closing it gives the chat the room
Narrow, it starts closed, slides over the chat from the right and closes with its × or Esc
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"