Pro
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.
pnpm dlx shadcn@latest add @caliper/reading-progressWhen to use
Use it for
- Long articles, guides and policies, especially on phones where there is no side outline.
- Reports read top to bottom.
Skip it when
- Short pages that fit in two screens.
- Pages that already show an outline beside the text; use scroll spy nav there.
Decisions
Why it is built this way, so you know what to keep when you change your copy.
Behaviour
- Progress is derived, not stored
- The ring and the section are read from the scroll position every frame the page moves, so they can never drift from what is on screen.
- Jumping moves focus too
- Choosing a section scrolls there and focuses it, so a keyboard or screen reader user continues reading from that section rather than from the pill.
Styling
- Out of the way until you scroll
- The pill appears after the first screen and floats over the page with the frosted surface, because it floats; it never covers the article's own outline.
Usage
- One per scrolling surface
- Use placement fixed for the window, or sticky as the last child of a scrolling panel with its ref passed as scrollRef.
Installation
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.
Usage
Import it from your copy of the source. The example behind the preview comes with the source.
import { ReadingProgress } from "@/components/ui/reading-progress"
The worked example comes with Pro
The 33-line example behind the preview opens here, ready to copy.
- 626 Pro parts, blocks and page templates, all with source
- $149 once, with lifetime updates. No renewal
- A full refund within 14 days if it is not for you
API reference
ReadingProgress
component
Accessibility
It is built on native elements and keeps aria-current, aria-hidden, aria-expanded, aria-controls and aria-label in step with state.
No custom key handling; Tab and the native activation keys do the work.
Motion
It checks prefers-reduced-motion itself and settles immediately instead of travelling. Every state is still reachable.
Related
- Scroll spy navAn outline that follows your reading: a marker glides to the section in view, and choosing a link scrolls there and moves focus into it.
- Scroll effectsTools for effects that follow scroll position, such as progress and reveals.
- Docs sidebarDocumentation navigation and an on-page outline.