# Scroll Position Progress Bar

https://fieldbook.lizardi.mx/components/scroll-position-progress-bar

Category: Feedback
![Still of the Scroll Position Progress Bar component, a Fieldbook UI component in Feedback.](https://fieldbook.lizardi.mx/thumbs/scroll-position-progress-bar.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/scroll-position-progress-bar-4634be232f.mp4 (5 s, silent)

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

## Frameworks

react, vue, svelte, astro, html

## Preview controls

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

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| accentColor | color | #9BE15D | No additional limit in the metadata. |
| barHeight | number | 6 | From 2 to 8; step 1 |
| springStiffness | number | 250 | From 50 to 400; step 10 |
| trackGlobalPage | boolean | false | No additional limit in the metadata. |

## Usage notes

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

### 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.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "scroll-position-progress-bar",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Empty State Panel](https://fieldbook.lizardi.mx/components/blank-slate-card)
- [Click ripple burst](https://fieldbook.lizardi.mx/components/click-ripple-burst)
- [Content Loading Card](https://fieldbook.lizardi.mx/components/content-loading-card)
- [Count badge cluster](https://fieldbook.lizardi.mx/components/count-badge-cluster)
- [Curtain line loader](https://fieldbook.lizardi.mx/components/curtain-line-loader)
- [Empty State Panel](https://fieldbook.lizardi.mx/components/empty-state-panel)
