chat-03
simple-ai/chat-03FreeBlock
A chat in a popover.
Install it
npx shadcn@latest add https://simple-ai.dev/r/chat-03.jsonSource
1"use client";23import { X } from "lucide-react";4import { useState } from "react";5import { Button } from "@/components/ui/button";6import { Chat } from "@/registry/blocks/chat-03/components/chat";78export default function Page() {9 const [open, setOpen] = useState(true);1011 return (12 <div className="h-screen flex items-center justify-center">13 <Button size="lg" onClick={() => setOpen(true)}>14 Open Chat15 </Button>16 <div className="fixed bottom-4 right-4 z-50 flex flex-col items-end gap-4">17 {open && (18 <div className="w-[400px] h-[600px] bg-background border rounded-lg shadow-lg flex flex-col overflow-hidden">19 <div className="flex items-center justify-between p-4 border-b">20 <h4 className="font-semibold">Chat</h4>21 <Button22 variant="ghost"23 size="icon"24 onClick={() => setOpen(false)}25 >26 <span className="sr-only">Close chat</span>27 <X />28 </Button>29 </div>30 <Chat />31 </div>32 )}33 </div>34 </div>35 );36}
What it pulls in
npm packages
Other registry items
Files it writes
More from simple-ai
All 77 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| app-01app-01 | simple-ai | Blocks | Free | 5 deps · 11 files | |
| app-02app-02 | simple-ai | Blocks | Free | 3 deps · 5 files | |
| app-03app-03 | simple-ai | Blocks | Free | 4 deps · 9 files | |
| chat-01chat-01 | simple-ai | Blocks | Free | 3 deps · 16 files | |
| chat-02chat-02 | simple-ai | Blocks | Free | 2 deps · 3 files | |
| chat-04chat-04 | simple-ai | Blocks | Free | 3 deps · 13 files | |
| flow-chainflow-chain | simple-ai | Blocks | Free | 8 deps · 19 files | |
| flow-orchestratorflow-orchestrator | simple-ai | Blocks | Free | 8 deps · 19 files |
