Components
Progress
Fixed scroll progress indicator with bar, dots, and ring styles.
Overview
<Progress> is a fixed scroll progress indicator. It supports bar, dots, and ring visual styles and can be positioned on any edge of the viewport.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | "bar" | "dots" | "ring" | "bar" | Visual style of the indicator |
position | "top" | "bottom" | "left" | "right" | "top" | Fixed position on screen |
color | string | "#3b82f6" | Color of the progress fill / active dots / ring stroke |
trackColor | string | "transparent" | Background / inactive color |
progress | number | -- | Progress override (0-1). If omitted, reads page scroll progress |
dotCount | number | 5 | Number of dots (only for "dots" type) |
ringSize | number | 48 | Diameter in pixels (only for "ring" type) |
className | string | -- | CSS class for the wrapper |