← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

shadcn/ui Introduces New Chat Components for Building Conversational Interfaces

🔄 Updated 1h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • New chat components include MessageScroller, Message, Bubble, Attachment, and Marker.
  • MessageScroller handles complex scrolling behaviors for chat threads.
  • @shadcn/react package offers unstyled, headless components for interaction logic.
  • Components are available for both Radix and Base UI frameworks.

New Chat Components Released

shadcn, the design engineer behind shadcn/ui, has launched a new collection of components specifically designed for creating chat interfaces. This release integrates streaming conversation primitives directly into shadcn/ui, marking the first time such functionalities are available within the framework.

The initial phase of this effort includes five core components: MessageScroller, Message, Bubble, Attachment, and Marker. Additionally, two new CSS utilities, scroll-fade and shimmer, have been introduced to support these components. Installation is managed through the familiar shadcn CLI.

Core Functionality of MessageScroller

At the center of this release is MessageScroller, a scroll container engineered to manage intricate chat-related behaviors. These include anchored turns, streamed replies, saved thread restoration, prepended history, jump-to-message functionality, scroll controls, and visibility tracking. MessageScroller handles these behaviors without dictating message content, AI state, transport, persistence, or model state, allowing developers to supply their own content renderer.

Complementing MessageScroller, the Message component lays out a conversation row, Bubble renders the message surface with reactions and buttons, Attachment manages files and images with upload states, and Marker displays status updates and separators for elements like tool activity and date breaks.

Introduction of @shadcn/react

Alongside the chat components, shadcn also introduced @shadcn/react, a new package offering unstyled, headless components. This package allows for the shipping of tested interaction logic independently of visual styles. The initial component available in this package is message-scroller, with the shadcn/ui registry component wrapping it in specific styles. These components are compatible with both Radix and Base UI.

Industry Reception and Context

The announcement garnered significant attention, with Vercel CEO Guillermo Rauch endorsing the release. Despite a reported GitHub issue regarding MessageScroller mount-time anchors, broader sentiment on Hacker News remains positive, with developers appreciating the modular, copy-paste model that allows for individual component upgrades and avoids version lock-in.

This release exists alongside Vercel's AI Elements, which is also built on shadcn/ui and integrates with the AI SDK useChat hook. shadcn clarified that the new chat components do not replace AI Elements, and existing users are not required to rewrite their implementations.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~15 min · 13 stories · Aug 17

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

shadcn, the creator of shadcn/ui, released a new set of components for building chat interfaces, bringing streaming conversation primitives to the UI library. This release provides developers with tools to integrate chat functionalities into applications, offering a modular approach to UI development.