BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/100xui/chat-bento-card

Chat bento card

100xui/chat-bento-card
FreeBlock

A Bento chat interface card that mimics live chat interactions, great for embedding conversational UI demos in a Bento grid.

Live preview

live · rendered by the registry
Rendered by 100xui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://100xui.com/r/chat-bento-card.json

Source

registry/100xui/blocks/chat-bento-card/components/chat-bento-card.tsx100xui.com/r/chat-bento-card.json · first 6 KB
1"use client";
2
3import * as React from "react";
4import {
5 AnimatePresence,
6 motion,
7 stagger,
8 type HTMLMotionProps,
9} from "motion/react";
10import { CheckCheckIcon } from "lucide-react";
11
12import { cn } from "@/lib/utils";
13import { Avatar, AvatarImage, AvatarFallback } from "./ui/avatar";
14
15interface OutgoingMessageType {
16 type: "outgoing";
17 content: React.ReactNode;
18}
19
20interface IncomingMessageType {
21 type: "incoming";
22 content: React.ReactNode;
23 from: string;
24 avatarProps: { src?: string | Blob; fallback: string };
25}
26
27export type ChatMessageType = OutgoingMessageType | IncomingMessageType;
28
29const MotionAvatar = motion.create(Avatar);
30
31interface ChatBentoCardProps extends React.ComponentPropsWithoutRef<"div"> {
32 messages: ChatMessageType[];
33 staggerMessagesInSec?: number;
34 typingDurationInSec?: number;
35 initialMessagesCount?: number;
36 timestamp?: React.ReactNode;
37 viewOptions?: IntersectionObserverInit;
38 startChatOn?: "hover" | "view";
39}
40
41const POP_LAYOUT_SYNC_DURATION = 0.2;
42
43export function ChatBentoCard({
44 messages,
45 className,
46 startChatOn = "view",
47 initialMessagesCount = 1,
48 staggerMessagesInSec = 2,
49 typingDurationInSec = 0.75,
50 timestamp = "Today",
51 onMouseEnter,
52 onMouseLeave,
53 viewOptions = { threshold: 1 },
54 ...rest
55}: ChatBentoCardProps) {
56 const id = React.useId();
57
58 const [totalMessagesAnimated, setTotalMessagesAnimated] = React.useState(0);
59 const [typing, setTyping] = React.useState(true);
60 const intervalRef = React.useRef<NodeJS.Timeout>(undefined);
61
62 const chatContainerRef = React.useRef<HTMLDivElement>(null);
63 const upcomingMessage = React.useRef<number>(initialMessagesCount);
64
65 const startAnimation = React.useCallback(() => {
66 const advanceMessage = () => {
67 if (messages[upcomingMessage.current]) {
68 setTotalMessagesAnimated((prev) => prev + 1);
69 upcomingMessage.current += 1;
70 setTyping(true);
71 } else {
72 clearInterval(intervalRef.current);
73 }
74 };
75 advanceMessage();
76 intervalRef.current = setInterval(
77 advanceMessage,
78 staggerMessagesInSec * 1000,
79 );
80 }, [messages, staggerMessagesInSec]);
81
82 const resetAnimation = () => {
83 setTotalMessagesAnimated(0);
84 setTyping(true);
85 upcomingMessage.current = 0;
86 clearInterval(intervalRef.current);
87 };
88
89 React.useEffect(() => {
90 if (startChatOn !== "view") return;
91
92 const observer = new IntersectionObserver(([entry]) => {
93 if (entry.isIntersecting) startAnimation();
94// … truncated

What it pulls in

npm packages

  • motion

Other registry items

  • avatar

Files it writes

  • registry/100xui/blocks/chat-bento-card/components/chat-bento-card.tsx

Facts

Registry
100xui
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-04
Last confirmed
today

Go to the source

Docs on 100xui 100xui.com YashwantOstwal/100xUI on GitHub Raw registry item This item as JSON

More from 100xui

All 14 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Apple galleryapple-gallery100xuiBlocksFree1 dep
demosdemos100xuiBlocksFreeno deps · 12 files
In-page navbarin-page-navbar100xuiBlocksFree1 dep · 2 files
internalsinternals100xuiBlocksFreeno deps · 4 files
iPhone 3D mockupiphone-3d-mockup100xuiBlocksFreeno deps
Menu wheelmenu-wheel100xuiBlocksFree1 dep
Morph modalmorph-modal100xuiBlocksFree1 dep
Motion Dockmotion-dock100xuiBlocksFree1 dep · 3 files

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