DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
  1. Components
  2. Message Scroller
  3. Message Scroller Anchored Turn
MarkdownShare

Shadcn Message Scroller Anchored Turn

Anchored turn with a previous peek. Built by composing Avatar, Bubble, Card, Input Group, Message and 1 more. A free, open source shadcn message scroller example you can install with npx shadcn@latest add @reui/c-message-scroller-3 and edit as your own code.

scrollAnchor lifts a sent message near the top while a slice of the previous turn stays visible.

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.

Best for: A composer form that sends questions and gets a canned answer after 900ms, each question lifted near the top under a 64px peek

When to use

  • Chat and assistant transcripts in a bounded panel that open on the newest turn and offer a jump back to it
  • Streaming replies that follow the bottom until the reader scrolls up, with sent questions lifted near the top
  • Saved threads that reopen at a chosen turn, load older history above the reader or step between questions

When not to use

  • A reply that grows token by token while the view follows the bottom: use the Message Scroller Streaming Reply example
  • The layout of a single turn, its avatar, sender name and timestamp around the body: use the Message component
  • A sidebar, settings list or panel that overflows but never grows at the bottom: use the Scroll Area component
  • A finished assistant screen with composer, thread list, citations and docked panels: use the AI Chat blocks

Agent notes

  • Replace the 900ms setTimeout in handleSubmit, which answers from REPLIES, with your send and reply call
  • The scrollPreviousItemPeek gap is left above a row only when it carries scrollAnchor, so keep that prop on the question rows
  • The parts and hooks throw outside MessageScrollerProvider, so a header or footer control that calls a hook needs the provider above it too
  • MessageScroller fills its parent through size-full, so bound the parent height or the page scrolls instead of the transcript
  • Render MessageScrollerButton as a sibling of MessageScrollerViewport; placed inside it, the control scrolls away with the rows
Markdownhttps://web.dev.reui.io/components/message-scroller/c-message-scroller-3.md
MCPget_example("c-message-scroller-3")
Installnpx shadcn@latest add @reui/c-message-scroller-3
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in Message Scroller Anchored Turn

  • Avatar
  • Bubble
  • Card
  • Input Group
  • Message
  • Message Scroller

About Shadcn Message Scroller Anchored Turn

Anchored turn with a previous peek. Built by composing Avatar, Bubble, Card, Input Group, Message and 1 more. A free, open source shadcn message scroller example you can install with npx shadcn@latest add @reui/c-message-scroller-3 and edit as your own code.

What You Can Build With Shadcn Message Scroller Anchored Turn

  • Composes Avatar, Bubble, Card, Input Group, Message, Message Scroller, so it drops into any project already using those components.
  • Install it with the shadcn CLI: npx shadcn@latest add @reui/c-message-scroller-3
  • Open source and free, with the full source on this page to copy or adapt.

More Shadcn Message Scroller Examples

  • Jump to Latest Chat transcript with jump to latest
  • Streaming Reply Streaming reply that follows the edge
  • Opening Position Opening position for a saved thread
  • Load Earlier Load earlier without losing your place
  • Thread Navigator Thread navigator for stepping turns

Related Shadcn Component Categories

  • Native Select

    Open-source shadcn native select components for lightweight selects, mobile-friendly forms, and basic option picking.

  • Navigation Menu

    Open-source shadcn navigation menu components for site navigation, mega menus, and product navigation.

  • Number Field

    Open-source shadcn number field components for quantity pickers, pricing inputs, and step controls.

  • Pagination

    Open-source shadcn pagination components for table pagination, search results, and content archives.

  • Phone Input

    Open-source shadcn phone input components for international signup, contact forms, and country codes.

  • Popover

    Open-source shadcn popover components for inline settings, contextual actions, and lightweight overlays.

Frequently Asked Questions

When should I use Shadcn Message Scroller Anchored Turn?

Use it for a composer form that sends questions and gets a canned answer after 900ms, each question lifted near the top under a 64px peek.

Shadcn Message Scroller as a whole fits:

  • Chat and assistant transcripts in a bounded panel that open on the newest turn and offer a jump back to it
  • Streaming replies that follow the bottom until the reader scrolls up, with sent questions lifted near the top
  • Saved threads that reopen at a chosen turn, load older history above the reader or step between questions

For a reply that grows token by token while the view follows the bottom, use the Message Scroller Streaming Reply example. For the layout of a single turn, its avatar, sender name and timestamp around the body, use the Message component. For a sidebar, settings list or panel that overflows but never grows at the bottom, use the Scroll Area component. For a finished assistant screen with composer, thread list, citations and docked panels, use the AI Chat blocks.

How do I install Shadcn Message Scroller Anchored Turn?

Run npx shadcn@latest add @reui/c-message-scroller-3. The CLI copies the source into your project, so you own the code and can edit it freely.

Is Shadcn Message Scroller Anchored Turn free to use?

Yes. Every ReUI component example is open source and free for personal and commercial projects.

Which components does Shadcn Message Scroller Anchored Turn use?

It composes Avatar, Bubble, Card, Input Group, Message, Message Scroller. The shadcn CLI installs those alongside the example.
PreviousStreaming ReplyNextOpening Position

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App Shell
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats2 meter cards moved here from Charts, 17 in all
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area ChartAdded a new Inbound Leads area chart block
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sankey ChartNew Sankey Chart category with 3 flow chart blocks
  • Slope ChartNew Slope Chart category with 2 rank-shift chart blocks
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity
  • AI UsageNew AI Usage category with 2 spend blocks

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users
  • Digital TwinNew Digital Twin category with 2 interactive 3D blocks

Templates

  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K