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>| Prop | Type | Default | Description |
|---|---|---|---|
| target | RefObject<HTMLElement | null> | — | The element to measure, for example an <article>. Without it the progress is the scroll of the whole page. |
| container | RefObject<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. |
| disabled | boolean | false | Rests every part at 0 and stops the work. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ScrollProgressBar
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ScrollProgressRing
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ScrollProgressValue
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |







