# AssistantSidebar URL: /docs/ui/assistant-sidebar Side panel chat for co-pilot experiences and inline assistance. *** title: AssistantSidebar description: Side panel chat for co-pilot experiences and inline assistance. ---------------------------------------------------------------------------- import { ParametersTable } from "@/components/docs/tables/ParametersTable"; import { InstallCommand } from "@/components/docs/fumadocs/install/install-command"; import { AssistantSidebarSample } from "@/components/docs/samples/assistant-sidebar-sample"; A resizable side panel layout with your main content on the left and a Thread chat interface on the right. Ideal for co-pilot experiences and inline assistance. ## Getting Started ### Add `assistant-sidebar` This adds `/components/assistant-ui/assistant-sidebar.tsx` to your project, which you can adjust as needed. ### Use in your application ```tsx title="/app/page.tsx" {1,6} import { AssistantSidebar } from "@/components/assistant-ui/assistant-sidebar"; export default function Home() { return (
{/* your app */}
); } ```
## API Reference ### AssistantSidebar A layout component that creates a resizable two-panel interface. The component uses `ResizablePanelGroup` from shadcn/ui internally, creating: * **Left panel**: Your application content (passed as `children`) * **Right panel**: The Thread chat interface (rendered automatically) * **Resize handle**: Draggable divider between panels ## Customization Since this component is copied to your project at `/components/assistant-ui/assistant-sidebar.tsx`, you can customize: * Panel default sizes and min/max constraints * Resize handle styling * Thread component configuration ```tsx title="/components/assistant-ui/assistant-sidebar.tsx" {children} ``` ## Related Components * [Thread](/docs/ui/thread) - The chat interface displayed in the sidebar * [AssistantModal](/docs/ui/assistant-modal) - Alternative floating modal layout