Mark Yo

Chat App

AI chats

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>
  );
}

More by Mark Yo

View all
  • Loader

    Loader

    72
  • Pricing Table

    Pricing Table

    29
  • Bento Grid

    Bento Grid

    18
  • Expandable Tabs

    Expandable Tabs

    18
  • Wallet Card

    Wallet Card

    15
  • Image Gallery

    Image Gallery

    11
  • CTA Section

    CTA Section

    10
  • Approval Queue

    Approval Queue

    9

More in AI chats

View all
  • AI Actions

    AI Actions

    369
  • Message Parts

    Message Parts

    4
  • Aquarium Prompt

    Aquarium Prompt

    195
  • Agent Chat

    Agent Chat

    21
  • AI Suggestions

    AI Suggestions

    24
  • Research Report

    Research Report

    8
  • Commit

    Commit

    45
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    20