Scroll Progress

NavigationNEW

An animated reading progress indicator with spring physics. Renders a top bar or right-side section dots navigator. Scopes to any scroll container via ref.

Loading preview...
Customize
Position:
Thickness
3
Color
#6366f1

Props

PropTypeDefaultDescription
position'top' | 'right''top'Where to render the indicator — top bar or right-side dots.
thicknessnumber3Height of the top bar in px, or dot diameter base size.
colorstring'#6366f1'Fill color for the progress bar and active dot.
sectionsSection[][]Array of { id, label } for right-side section dot navigation.
containerRefRefObject<any>undefinedScroll container ref. Omit to track window scroll.
classNamestring''Additional CSS classes.