Matt Montenegro's Backstage

MessageScroller: navigation in long chats

by @shadcn · · UI/UX

MessageScroller: navigation in long chats

Shadcn points to MessageScroller hooks for tracking the current anchor and visible messages and building a navigation trail in chats. The quoted post describes hover preview and jumping between Codex turns; code not tested.

Post text

If you want to add a navigation trail to your own chat app, the new MessageScroller component has the hooks you need out of the box. Look for: const { currentAnchorId, visibleMessageIds } = useMessageScrollerVisibility()

Open the post on X ↗Open in the archive

Similar references