Skip to content
Interactive

ScrollProgress

Shows how far through the page you are. Pick a bar across the top, or a ring with the percent that takes you back up on a click. Follows the page or any scrolling box.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
variant"bar" | "ring""bar"Bar across the top, or a round back-to-top button.
containerRefObject<HTMLElement | null>โ€”Scrolling box to follow. Leave out to use the page.
sizenumber3 bar, 52 ringBar height or ring width in pixels.
accentstring"#a78bfa"Colour of the progress.
labelstring"Reading progress"Read by screen readers.
classNamestringfixed to the pageReplaces the default place and look.