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/Agents from ./agent-chat.
import { AgentChatScreen } from "@/components/ui/agent-chat";
export default function Page() {
return <AgentChatScreen 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 | |
| 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 opens from history: the chat's name, the thread (your message, the answer's lines, the agents at work) and the brief's sections show gray placeholders in the shape of the real ones (the shared Skeleton), so nothing jumps when the data lands; the composer stays and sending waits | |
| 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")), and the brief’s Brief, Assets and Activity each say what will show up there; the composer stays and sending waits; loading wins when both are on | |
| className | string | Extra class on the root |
Fills its container – give it the full viewport height in your app
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"; colors are CSS variables on .ui-as