Message Scroller
A compact conversation minimap that navigates user turns while keeping the full thread visible.
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/message-scroller.jsonAPI reference
Message Scroller
| Prop | Type | Default | Description |
|---|---|---|---|
messages | MessageScrollerMessage[] | — | Provides the full thread; user turns are represented by minimap strips. |
activeId | string | — | Highlights the message currently visible in the conversation. |
onMessageSelect | (message) => void | — | Runs after a strip scrolls its matching message into view. |