Scrollprogress
Scroll position indicator
Shows reading progress as a bar at the top of the page.
Usage
Add to your layout to show scroll progress.
Custom color
Change the progress bar color.
Custom height
Adjust the bar thickness.
Props
| prop | type | default | description |
|---|---|---|---|
| color | string | "var(--accent)" | Bar color |
| height | number | 2 | Bar height in pixels |
Features
- Fixed position at top of viewport
- Smooth animation on scroll
- Accessible with ARIA progressbar role
- Passive scroll listener for performance