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/DoubleSidebar from ./agent-chat-rail.
import { AgentChatRailScreen } from "@/components/ui/agent-chat-rail";
export default function Page() {
return <AgentChatRailScreen 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 an icon, a sidebar item or a project | |
| workspace | string | "Acme" | The workspace – its initial tops the icon column and opens its menu |
| user | { name: string; avatar?: string } | { name: "Alex Morgan" } | The account – its picture at the bottom of the icon column |
| loading | boolean | While the chat loads: the thread's messages and the Task panel as gray shapes in the shape of the real ones (the Agent / Thread loading state); sending waits | |
| empty | boolean | No chats yet: the icon column and the project switcher stay, the chat column says no chats yet, the thread has no messages and the work area no files; the composer stays and sending waits; loading wins when both are on | |
| className | string | Extra class on the root |
The icon column stays on the gray page; the chats are the main area's left part – a light gray column split from the chat by a line, as wide as you drag it
On narrow screens (under 900px of the app) the icons and the sidebar slide in together as one drawer
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"