ProgressBar
This component adds an animated progress bar to the top of the page. The progress bar is shown when the page is scrolled.
Import
import { ProgressBar } from "@aeonkit/core";Usage
<ProgressBar />Props
barClassName
- barClassName?
-
stringThe class name for the progress bar.
options
Refer to the react-spring documentation for more information.
- options?
-
UseScrollOptionsThe react spring options for the progress bar.
getProgress
- getProgress?
-
({ scrollY, scrollYProgress, width }: GetProgress) => numberThe function to get the progress of the scroll.