Skip to content
Menu

Feedback

Scroll Position Progress Bar

Scroll Position Progress Bar: A thin bar that grows across a container's width as the user scrolls it from start to end.

Using Scroll Position Progress Bar

Scroll Position Progress Bar uses the wide preview frame with a dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
accentColorcolor#9BE15DNo additional limit in the metadata.
barHeightnumber6From 2 to 8; step 1
springStiffnessnumber250From 50 to 400; step 10
trackGlobalPagebooleanfalseNo additional limit in the metadata.
Which frameworks are available for Scroll Position Progress Bar?

Scroll Position Progress Bar is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Scroll Position Progress Bar depend on?

The React metadata lists these npm dependencies beyond React: motion.

What accessibility details are visible in Scroll Position Progress Bar?

The React source for Scroll Position Progress Bar includes: attributes and handlers (aria-hidden, aria-label, aria-valuemax, aria-valuemin, aria-valuenow, tabIndex); explicit roles (progressbar, region). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Scroll Position Progress Bar handle reduced motion?

Scroll Position Progress Bar reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: fill: reduceMotion ? scrollYProgress : smoothed. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components