Scroll Progress
Animated Scroll Progress for your pages
Note: The scroll progress is shown below the navbar of the page.
import { ScrollProgress } from '@/registry/magicui/scroll-progress'
export function ScrollProgressDemo() { return ( <div class="z-10 rounded-lg p-4"> <ScrollProgress class="top-16.25" /> <h2 class="pb-4 font-bold"> Note: The scroll progress is shown below the navbar of the page. </h2> </div> )}Installation
Section titled “Installation”pnpm dlx shadcn@latest add @magicui-solid/scroll-progressbunx shadcn@latest add @magicui-solid/scroll-progressyarn dlx shadcn@latest add @magicui-solid/scroll-progressnpx shadcn@latest add @magicui-solid/scroll-progressimport { ScrollProgress } from "@/components/magicui/scroll-progress"<ScrollProgress />| Prop | Type | Default | Description |
|---|---|---|---|
class |
string |
- |
The class name to be applied to the component |
The ScrollProgress component also accepts all properties of the HTMLDivElement type.
Credits
Section titled “Credits”- Credit to dipesh_the_dev
Original:
magicui.design/docs/components/scroll-progress