Skip to main content
BlocksAI ChatChat with AI Elements composer

shadcn/ui AI Chat block for React AriaChat with AI Elements composer

A shadcn/ui chat block modelled on the AI Elements pattern: a Conversation container with auto scroll, Message components for user and assistant turns, and a PromptInput with toolbar, model select, and submit state. Includes local, dependency-free versions of the conversation, message, and prompt-input components so it installs cleanly into any shadcn/ui project.

Pro@shadcnpro/aria/ai-chat-08

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 Chat with AI Elements composer from one prompt. It is included in every Pro plan.

Add the shadcn/ui components

Chat with AI Elements composer uses Button and Input Group, from the React Aria components set up in your components.json.

npx shadcn@latest add button input-group

Install the npm packages

npm install lucide-react use-stick-to-bottom

Copy the code

Paste it into components/ai-chat-08/index.tsx.

components/ai-chat-08/index.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/ai-chat-08/.

Usage
import AiChat08 from '@/components/ai-chat-08';
<AiChat08 />

Overview

Chat with AI Elements composer is a Pro ai chat block for shadcn/ui and React Aria. It is built from the Button and Input Group components with 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
React Aria (react-aria-components)
Also available for
Radix UI, Base UI
Built with
Button and Input Group
npm packages
lucide-react, use-stick-to-bottom
Files
4 files in components/ai-chat-08/
Access
Included in every plan

Frequently asked questions

Pricing, installation and React Aria details for Chat with AI Elements composer.