Skip to content
caliper ui pro docs

Horizontal scroll block

A section that turns the page's scroll sideways: while pinned, scrolling down moves a row of panels from right to left with a thin progress line, then the page carries on.

Pro

Use cases

One ledger, many teams

  1. Agencies

    Client entities side by side, each with its own rules.

  2. Logistics

    Fuel cards and freight invoices matched by route.

  3. Research

    Grants tracked by project, with spend against budget.

  4. Retail

    Daily takings reconciled across stores and terminals.

  5. Non-profits

    Restricted funds kept apart, reported the way boards ask.

When to use

  • A sequence of four to eight panels: a process, a timeline, a set of use cases.
  • A landing page that wants one change of pace.

When not to use

  • More than one per page.
  • Content people need to compare.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/horizontal-scroll-block

Adds its 6 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

HorizontalScrollBlock

5 props
PropTypeDefault
eyebrowstring—
title *string—
leadstring—
panels *readonly ScrollPanel[]—
classNamestring—

Keyboard

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

Accessibility

It is built on native elements and keeps aria-label and aria-hidden in step with state.

Motion

  • State changes animate with the library's shared durations and curves, so its timing matches every other part.
  • Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.

Notes for AI

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

/docs/components/horizontal-scroll-block.md

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

More in Showpiece sections