Skip to content
caliper ui pro docs

Message scroller

A scrolling transcript that stays pinned to the newest message.

Pro
What changed in Atlas platform since yesterday?

Assistant

Four merges and two deploys. The 9:40 deploy failed on a missing environment variable.
Who owns that variable?

Assistant

Omar Aziz added it on Monday. He is in a review until 11.
Draft him a note, then.

Assistant

Done. It says the deploy needs STRIPE_WEBHOOK_SECRET in production and links the failed run.

When to use

  • A conversation that grows as replies stream in.
  • You want a "jump to latest" control when the user scrolls up.

When not to use

  • The list is a fixed page of content.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/message-scroller

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

MessageScroller

5 props
PropTypeDefaultDescription
label *string—
children *ReactNode—
followKeyunknown—Changing this (for example when you send a message) always brings the newest content into view.
announcementstring—Short status for screen readers, such as "Assistant is responding". Content itself is not announced as it streams.
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes log and status semantics, with aria-label, aria-live and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/message-scroller.md

The index of every part is at /llms.txt.

More in Agent shell