Skip to content
caliper ui pro docs

Reading progress

Where you are in a long page, in a small pill that appears once you start scrolling: a ring that fills as you read, the section you are in and how far through you are. Press it to jump to another section.

Pro

Elias Kim · release note · 4 min read

Multi-currency matching

Scroll this panel: the pill appears and follows the section you are reading.

Why we changed matching

Payments in one currency now match invoices in another. Until now, a euro invoice paid into a sterling account sat unmatched until someone booked the difference by hand.

Payments in one currency now match invoices in another. Until now, a euro invoice paid into a sterling account sat unmatched until someone booked the difference by hand.

Payments in one currency now match invoices in another. Until now, a euro invoice paid into a sterling account sat unmatched until someone booked the difference by hand.

Which rate is used

The rate on the payment date is used, taken from the European Central Bank reference rates published that afternoon. If a payment lands on a weekend, the previous working day's rate applies.

The rate on the payment date is used, taken from the European Central Bank reference rates published that afternoon. If a payment lands on a weekend, the previous working day's rate applies.

The rate on the payment date is used, taken from the European Central Bank reference rates published that afternoon. If a payment lands on a weekend, the previous working day's rate applies.

Where the difference goes

The difference between the invoice amount at that rate and what arrived is posted to FX gains and losses as its own line, so it shows in reports and can be reviewed in the close.

The difference between the invoice amount at that rate and what arrived is posted to FX gains and losses as its own line, so it shows in reports and can be reviewed in the close.

The difference between the invoice amount at that rate and what arrived is posted to FX gains and losses as its own line, so it shows in reports and can be reviewed in the close.

Rules and IBAN matching

Rules can now match on IBAN as well as reference. A rule on IBAN is checked first, because a customer's bank account changes less often than how they write the reference.

Rules can now match on IBAN as well as reference. A rule on IBAN is checked first, because a customer's bank account changes less often than how they write the reference.

Rules can now match on IBAN as well as reference. A rule on IBAN is checked first, because a customer's bank account changes less often than how they write the reference.

What it does not do yet

Part payments across currencies are matched one at a time. Bulk matching treats foreign-currency lines as suggestions you confirm, never automatic matches.

Part payments across currencies are matched one at a time. Bulk matching treats foreign-currency lines as suggestions you confirm, never automatic matches.

Part payments across currencies are matched one at a time. Bulk matching treats foreign-currency lines as suggestions you confirm, never automatic matches.

When to use

  • Long articles, guides and policies, especially on phones where there is no side outline.
  • Reports read top to bottom.

When not to use

  • Short pages that fit in two screens.
  • Pages that already show an outline beside the text; use scroll spy nav there.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/reading-progress

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

ReadingProgress

6 props
PropTypeDefaultDescription
sections *readonly ReadingSection[]—The sections in page order; each id is an element on the page.
scrollRefRefObject<HTMLElement | null>—The element that scrolls; the window when absent.
placement"sticky" | "fixed""fixed""fixed" floats at the bottom of the window; "sticky" sits at the bottom of its scrolling parent (render it last inside that parent).
showAfternumber120Pixels scrolled before the pill appears.
labelstring"Reading progress"
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-current, aria-hidden, aria-expanded, aria-controls and aria-label 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/reading-progress.md

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

More in Compare & browse