Scroll Progress Rail

Motion

A React reading progress bar that fills with page scroll on a spring, with section labels such as intro, product, proof and pricing shown beneath it.

src/registry/premium/scroll-progress-rail.tsx/r/scroll-progress-rail.json

Installation#

bash
npx shadcn@latest add @minidev/scroll-progress-rail

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/scroll-progress-rail.json

Usage#

tsx
import { ScrollProgressRail } from "@/components/ui/scroll-progress-rail"

export function Example() {
  return <ScrollProgressRail />
}

API reference#

ScrollProgressRail props
PropTypeDefault
labelsstring[]["Intro", "Product", "Proof", "Pricing"]
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files
All navigation components