Scroll Progress

A thin progress bar at the top of the page that tracks scroll position.

npx arupui add scroll-progress
Preview

Renders a fixed progress bar at the top of the page. Scroll to see it in action.

Usage

scroll-progress.tsx
import { ScrollProgress } from "@/components/blocks/scroll-progress"

// Place in your layout
<ScrollProgress />

Props

color
Type: stringDefault: hsl(var(--primary))
height
Type: numberDefault: 3
position
Type: top | bottomDefault: top
Theme Editor

Theme

Radius0.5rem
Letter Spacing0em

Colors

light