Shadcn.io is not affiliated with official shadcn/ui
React AI Message
React AI message component with user/assistant styling, branching, attachments, and streaming markdown for chat interfaces
This is the big one—the message component that handles everything in a chat UI. User messages, assistant messages, file attachments, image previews, conversation branching (like when you regenerate a response and want to flip between versions), streaming markdown, action buttons for copy/like/retry. It's a lot, but it's all composable so you pick what you need. User messages go right with a subtle background, assistant messages go left and render markdown. The markdown rendering uses Streamdown which is optimized for streaming—no weird flashing as tokens come in. We've battle-tested this on production chat apps with thousands of messages. It handles the edge cases.
Message preview
Installation
Related Components
React AI Conversation
Chat container with scroll
React AI Prompt Input
Message input area
React AI Reasoning
AI thinking display
React AI Sources
Citation sources
React AI Tool
Tool execution display
React AI Loader
Loading spinner