Skip to main content
BlocksAI ChatConversation thread with message actions

shadcn/ui AI Chat block for Base UIConversation 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/base/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, from the Base UI components set up in your components.json.

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

Install the npm packages

npm install @base-ui/react class-variance-authority lucide-react 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 and Base UI. It is built from the Button, Dropdown Menu, Input Group and Textarea components with @base-ui/react, class-variance-authority, lucide-react 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
Base UI (@base-ui/react)
Also available for
Radix UI, React Aria
npm packages
@base-ui/react, class-variance-authority, lucide-react, use-stick-to-bottom
Files
4 files in components/blocks/
Access
Included in every plan

Frequently asked questions

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