AI Message List
Copilot thread with hundreds of messages that pages backwards when scrolling up without moving what is being read.
About this block
What it's for
- Copilot thread with hundreds of messages that pages backwards when scrolling up without moving what is being read.
- Support chat where replies arrive while the agent reviews the history and a button shows '3 new messages'.
- Agent console that follows streaming output while the user is at the bottom and stops following when they scroll up.
Includes
- Virtualized rendering
- Variable height measurement
- Day grouping
- Relative day labels
- Floating day label
- Follow output
- Smart scroll to bottom
- Unread counter
Works with
- Radix UI primitives (the registry variant it ships in)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add ai-message-listInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/ai-message-listUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- Sample data
- Ships with sample data in
data.ts; replace it with your own.
- npm packages
- None beyond your project's React and Next.js
- Registry dependencies
ai-message-bubblelib-primitives- Files
5 files
- components/agentic-ui/ai-message-list/index.tsx
- components/agentic-ui/ai-message-list/data.ts
- components/agentic-ui/ai-message-list/types.ts
- components/agentic-ui/ai-message-list/virtual.ts
- components/agentic-ui/ai-message-list/grouping.ts
Related components
AI Action Confirmation
Operations agent that asks to drop production tables and shows the rows, size and last use of each one.
Details and live previewAI Agent Memory Viewer
Assistant settings where the user reviews and corrects what the agent knows about them (time zone, style preferences).
Details and live previewAI Agent Status Badge
Header of an agent run that moves from working to waiting-approval and opens the approval on click.
Details and live previewAI Chat Empty State
Assistant chat with no messages that offers four starting points configured by the workspace.
Details and live preview