Skip to content

MessageScroller

Follow new messages while preserving the reading position in earlier entries.

alpina-ui/interactive/message-scroller

Interactive preview

Print run 1. Print proof recorded.

Usage notes

If the viewport grows or content shrinks until the latest message is visible, the log resumes following and removes the redundant jump button.

When to use

Keep the newest messages visible in a conversation while allowing someone to read older replies.

When to avoid

Use a paginated or filterable list for an archive people consult by date.

Accessibility

Name the log. Test that incoming messages leave the reading position alone when someone scrolls up. Give the jump action an explicit label.

Keys
KeyAction
TabFocus the message log or its jump-to-latest button when available.
↑ / ↓Scroll through a log that overflows.
Enter / SpaceJump to the latest entry from the button.

Content

Use a short destination for the jump control. Keep sender names and message text separate.

Use
Latest messages
Avoid
Down

Copy in four languages

German
Neueste Nachrichten19 characters
French
Derniers messages17 characters
Italian
Ultimi messaggi15 characters
Romansh
Ultimas novitads16 characters
Add to your project
npx --no-install alpina add message-scroller