Skip to content

Scroll Progress

Free

A thin bar or a small ring that shows how far the reader is through the page or one article, with an optional read percent.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 17, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Wrap the page or the post in ScrollProgress, and place a ScrollProgressBar under the sticky header. Pass target to count one article only.

blog-post.tsx

ScrollProgress

<div>
PropTypeDefaultDescription
targetRefObject<HTMLElement | null>—The element to measure, for example an <article>. Without it the progress is the scroll of the whole page.
containerRefObject<HTMLElement | null>—The element that scrolls, for a part inside a scroll area. Without it the page scroll counts. With no target, the progress is the scroll of this element.
disabledbooleanfalseRests every part at 0 and stops the work.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ScrollProgressBar

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ScrollProgressRing

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ScrollProgressValue

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use ScrollProgressBar under a sticky header, or with fixed inset-x-0 top-0 at the top of the window.
  • Use target to count one article, not the intro and footer of the page.
  • Use container for a part inside a scroll panel.
  • Use ScrollProgressRing with ScrollProgressValue to show the percent.
  • For the progress of a task, an upload, or a step, use Progress.
  • For a button that goes back to the top with a ring, use Back To Top.
Bar
none · the bar fills from the start edge with `scaleX` in each scroll frame
Ring
none · the ring closes clockwise from the top in each scroll frame
  1. AddedScroll Progress.
Open the release