Skip to main content
BlocksAI ChatConversation thread with message actions

shadcn/ui AI Chat blockConversation thread with message actions

A full shadcn/ui AI chat thread with auto-scrolling message list, user and assistant bubbles, hover actions for copy, feedback, and regenerate, plus a composer with attachment and send buttons. Built with the shadcn/ui Message, Bubble, and MessageScroller primitives, so the conversation stays pinned to the newest reply and follows your theme tokens.

Pro@shadcnpro/ai-chat-05

Preview

Installation

Part of shadcn/ui Pro

Pro unlocks the source code and one-command install of all 439 blocks, plus the Figma kit, themes and the MCP server for your AI editor.

Let your AI editor install it

The shadcn/ui Pro MCP server lets Cursor, Claude Code and VS Code find and install blocks like Conversation thread with message actions from one prompt. It is included in every Pro plan.

Add the shadcn/ui components

Conversation thread with message actions uses Button, Dropdown Menu, Input Group and Textarea.

npx shadcn@latest add button dropdown-menu input-group textarea

Install the npm packages

npm install class-variance-authority lucide-react radix-ui use-stick-to-bottom

Copy the code

Paste it into components/blocks/ai-chat-05.tsx.

components/blocks/ai-chat-05.tsx

Part of shadcn/ui Pro

Pro unlocks the source code and one-command install of all 439 blocks, plus the Figma kit, themes and the MCP server for your AI editor.

Use it

Multi-file block: 4 files are installed under components/blocks/.

Usage
import AiChat05 from '@/components/blocks/ai-chat-05';
<AiChat05 />

Overview

Conversation thread with message actions is a Pro ai chat block for shadcn/ui. It is built from the Button, Dropdown Menu, Input Group and Textarea components with class-variance-authority, lucide-react, radix-ui and use-stick-to-bottom, and installs as 4 files you own and can edit.

It only uses semantic tokens such as bg-background, text-muted-foreground and border-border, so it follows your theme, radius and fonts and switches with dark mode. It is responsive from desktop to mobile; the width controls above the preview show each size. The same layout is in the shadcn/ui Pro Figma kit, so design and code start from one source.

Category
AI Chat
Component library
Radix UI (radix-ui)
Also available for
Base UI, React Aria
npm packages
class-variance-authority, lucide-react, radix-ui, use-stick-to-bottom
Files
4 files in components/blocks/
Access
Included in every plan

Frequently asked questions

Pricing, installation and Radix UI details for Conversation thread with message actions.