Message scroller
- from @keyline-ui
A conversation log on @shadcn/react's MessageScroller, as the reference: stays on the newest message, holds the reader's place when scrolled up, keeps position when older messages are prepended; role=log inside a focusable region. Keyline adds: the place also holds when content above changes size (in every engine), arrivals unfold from their top keyline while the reader follows, and a Latest cell that counts what arrived below and jumps a bounded, interruptible distance. The log scrolls inside Keyline's Scroll Area, so its bar is the shared one; the jump reveals it, and pressing it is the reader taking over.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @keyline-ui/message-scrollerComponent source
No live preview has been built for this component yet.
Registry dependencies5
- @keyline-ui/keyline
- utils
- @keyline-ui/keyline-render
- @keyline-ui/keyline-motion
- @keyline-ui/scroll-area