Atelier UI

Search components…

Search components…

Scroll Progress

Top gradient bar that fills with scroll progress; bind it to any scroll container.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

ScrollProgressProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
scrollTargetReact.RefObject<HTMLElement | null>—Scroll container to track; the window when omitted

Install

$ npx shadcn@latest add https://chromotion.dev/r/scroll-progress.json

More like this