Skip to content
Premium & Brand

Scroll Progress

A bar or ring that tracks how far a scroll container has been read.

Import

tsx
import { ScrollProgress } from "@cooud-ui/ui";
bash
npx cooud-ui add scroll-progress

Examples

API Reference

Generated from the component's exported types.

ScrollProgressProps

Extends HTMLAttributes<HTMLDivElement>

PropTypeDefaultDescription
variant
ScrollProgressVariant"bar"Render a thin horizontal bar or a circular ring.
target
RefObject<HTMLElement | null>The scroll container to track. When omitted, the window / document scrolling element is tracked instead.
position
ScrollProgressPosition"top"Where to pin the bar variant (ignored for the circle).
size
number40Diameter of the ring in px (circle variant only).