About
A responsive chat application shell with a collapsible sidebar that automatically folds off-canvas when the shell's own container becomes too narrow for both panes.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Chat App to your project and fits it to your theme.
Code
How Chat App is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import ChatApp from "@/components/ui/chat-app";
import {
AnimatedSidebar,
AnimatedSidebarContent,
AnimatedSidebarGroup,
AnimatedSidebarGroupLabel,
AnimatedSidebarGroupContent,
AnimatedSidebarMenu,
AnimatedSidebarMenuItem,
AnimatedSidebarMenuButton,
AnimatedSidebarInset,
AnimatedSidebarTrigger,
} from "@/components/ui/chat-app-utils/animated-sidebar";
export default function ChatAppDemo() {
return (
<ChatApp className="h-screen w-full">
<AnimatedSidebar>
<AnimatedSidebarContent>
<AnimatedSidebarGroup>
<AnimatedSidebarGroupLabel>Conversations</AnimatedSidebarGroupLabel>
<AnimatedSidebarGroupContent>
<AnimatedSidebarMenu>
<AnimatedSidebarMenuItem>
<AnimatedSidebarMenuButton isActive>
Product roadmap Q3
</AnimatedSidebarMenuButton>
</AnimatedSidebarMenuItem>
<AnimatedSidebarMenuItem>
<AnimatedSidebarMenuButton>
Refactor auth flow
</AnimatedSidebarMenuButton>
</AnimatedSidebarMenuItem>
<AnimatedSidebarMenuItem>
<AnimatedSidebarMenuButton>
Marketing copy ideas
</AnimatedSidebarMenuButton>
</AnimatedSidebarMenuItem>
</AnimatedSidebarMenu>
</AnimatedSidebarGroupContent>
</AnimatedSidebarGroup>
</AnimatedSidebarContent>
</AnimatedSidebar>
<AnimatedSidebarInset>
<div className="flex items-center gap-2 border-b border-border px-4 py-3">
<AnimatedSidebarTrigger />
<span className="text-sm font-medium">Product roadmap Q3</span>
</div>
<div className="flex-1 space-y-3 overflow-y-auto p-4">
<div className="max-w-[80%] rounded-2xl bg-muted px-4 py-2 text-sm">
Can you summarize the roadmap for next quarter?
</div>
<div className="ml-auto max-w-[80%] rounded-2xl bg-primary px-4 py-2 text-sm text-primary-foreground">
Sure — three themes: performance, mobile parity, and the new agent
tools.
</div>
</div>
</AnimatedSidebarInset>
</ChatApp>
);
}
















