Skip to content
Magic UI SolidMagicUI Solid

Scroll Progress

Animated Scroll Progress for your pages

Note: The scroll progress is shown below the navbar of the page.

@/demos/ScrollProgressDemo.tsx
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>
)
}
Terminal window
pnpm dlx shadcn@latest add @magicui-solid/scroll-progress
import { 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.

Original:

magicui.design/docs/components/scroll-progress