GitHub

Message Scroller

A chat scroll container that anchors turns, opens saved transcripts, follows streamed responses, loads history without jumping, and jumps to any message.

Today
Hi! I was charged twice for my March invoice.
Sorry about that. Could you share the last four digits of the card?
Sure, it ends in 4821.
Thanks. I can see two charges of $49.00 on March 3rd.
The second one was a retry that should have been voided. I've refunded it just now.
Great, how long until it shows up?
Refunds usually land within 3 to 5 business days, depending on your bank.
Perfect, thanks for the quick help!

Installation

pnpm dlx shadcn@4.21.1 add https://ui.elhcn.com/r/message-scroller.json

Usage

import {
  MessageScrollerProvider,
  MessageScroller,
  MessageScrollerViewport,
  MessageScrollerContent,
  MessageScrollerItem,
  MessageScrollerButton,
} from "@/components/ui/message-scroller"