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
- Components as Lego blocks · jacob paris ▲
- Member invite with AlignUI dropdowns · @ersadwork
- Request Modal · @dsgnverse
- Component for a marketing SaaS · @azharadev
- Visitor channels widget · Erşad
- Ved UI: forms on top of shadcn · @azacdev