BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/tripled/chat-app-shadcnui

Chat App

tripled/chat-app-shadcnui
FreeComponent

Fully functional chat interface with animated messages

Install it

npx shadcn@latest add https://ui.tripled.work/r/chat-app-shadcnui.json

Source

@uitripled/react-shadcn/src/components/components/chat/chat-app.tsxui.tripled.work/r/chat-app-shadcnui.json · first 6 KB
1"use client";
2
3import { Button } from "@/components/ui/button";
4import { Card } from "@/components/ui/card";
5import { Input } from "@/components/ui/input";
6import { ScrollArea } from "@/components/ui/scroll-area";
7import { AnimatePresence, motion } from "framer-motion";
8import { Bot, Loader2, Send, User } from "lucide-react";
9import { useEffect, useRef, useState } from "react";
10
11type Message = {
12 id: number;
13 text: string;
14 sender: "user" | "bot";
15 timestamp: Date;
16};
17
18const initialMessages: Message[] = [
19 {
20 id: 1,
21 text: "Hello! How can I help you today?",
22 sender: "bot",
23 timestamp: new Date(Date.now() - 60000),
24 },
25 {
26 id: 2,
27 text: "Hi there! I was wondering about your features.",
28 sender: "user",
29 timestamp: new Date(Date.now() - 30000),
30 },
31 {
32 id: 3,
33 text: "Of course! What would you like to know?",
34 sender: "bot",
35 timestamp: new Date(Date.now() - 15000),
36 },
37];
38
39export function ChatApp() {
40 const [messages, setMessages] = useState<Message[]>(initialMessages);
41 const [inputValue, setInputValue] = useState("");
42 const [isTyping, setIsTyping] = useState(false);
43 const scrollAreaRef = useRef<HTMLDivElement>(null);
44 const inputRef = useRef<HTMLInputElement>(null);
45
46 useEffect(() => {
47 // Auto-scroll to bottom when new messages arrive
48 if (scrollAreaRef.current) {
49 const scrollContainer = scrollAreaRef.current.querySelector(
50 "[data-radix-scroll-area-viewport]"
51 );
52 if (scrollContainer) {
53 scrollContainer.scrollTop = scrollContainer.scrollHeight;
54 }
55 }
56 }, [messages, isTyping]);
57
58 const formatTime = (date: Date): string => {
59 const hours = date.getHours();
60 const minutes = date.getMinutes();
61 const ampm = hours >= 12 ? "PM" : "AM";
62 const displayHours = hours % 12 || 12;
63 const displayMinutes = minutes.toString().padStart(2, "0");
64 return `${displayHours}:${displayMinutes} ${ampm}`;
65 };
66
67 const handleSend = () => {
68 const trimmed = inputValue.trim();
69 if (!trimmed) return;
70
71 const userMessage: Message = {
72 id: Date.now(),
73 text: trimmed,
74 sender: "user",
75 timestamp: new Date(),
76 };
77
78 setMessages((prev) => [...prev, userMessage]);
79 setInputValue("");
80 setIsTyping(true);
81
82 // Simulate bot response with typing indicator
83 setTimeout(() => {
84 const botMessage: Message = {
85 id: Date.now() + 1,
86// … truncated

What it pulls in

npm packages

  • framer-motion
  • react

Other registry items

  • button

Files it writes

  • @uitripled/react-shadcn/src/components/components/chat/chat-app.tsx

Facts

Registry
tripled
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-09
Last confirmed
3 days ago

Go to the source

ui.tripled.work moumen-soliman/uitripled on GitHub Raw registry item This item as JSON

More from tripled

All 282 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AI Chat Interfaceai-chat-interface-shadcnuitripledComponentsFree2 deps
AI Glow Inputai-glow-input-shadcnuitripledComponentsFree2 deps
AI Loading Skeletonai-loading-skeleton-shadcnuitripledComponentsFree2 deps
AI Response Typing Streamai-response-typing-shadcnuitripledComponentsFree2 deps
AI Unlock Animationai-unlock-animation-shadcnuitripledComponentsFree2 deps
Animated Accordionanimated-accordion-shadcnuitripledComponentsFree2 deps
Animated Card Stackanimated-card-stack-baseuitripledComponentsFree2 deps
Animated Card Stackanimated-card-stack-shadcnuitripledComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex