Skip to content

Message Scroller

The scrolling list of a conversation. It opens at the newest message, follows new ones while you're at the end, and stops following when you scroll up to read. A button takes you back.

Sourcecomponents/message-scroller.tsx
Message 1: here's the next step of the build, with the tokens applied.
Message 2: here's the next step of the build, with the tokens applied.
Message 3: looks good, keep going.
Message 4: here's the next step of the build, with the tokens applied.
Message 5: here's the next step of the build, with the tokens applied.
Message 6: looks good, keep going.
Message 7: here's the next step of the build, with the tokens applied.
Message 8: here's the next step of the build, with the tokens applied.
Message 9: looks good, keep going.
Message 10: here's the next step of the build, with the tokens applied.
Message 11: here's the next step of the build, with the tokens applied.
Message 12: looks good, keep going.
Message 13: here's the next step of the build, with the tokens applied.
Message 14: here's the next step of the build, with the tokens applied.
Message 15: looks good, keep going.
Message 16: here's the next step of the build, with the tokens applied.
Message 17: here's the next step of the build, with the tokens applied.
Message 18: looks good, keep going.
Message 19: here's the next step of the build, with the tokens applied.
Message 20: here's the next step of the build, with the tokens applied.

Usage

When to use

Use when

The scrolling list of a conversation: it opens at the newest message, follows new ones while the user is at the end, and offers Scroll to end. Requires @shadcn/react

Don’t use when

A feed that isn't a conversation, or a short static list (let the page scroll)