docs/components/feedback/TopProgressBar

TopProgressBar

Top-of-page route progress bar.

import { TopProgressBar } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
active *booleanWhether the bar is visible and animating.
progressnumberOptional determinate progress value in [0, 1]. When provided the bar fills to progress * 100%; otherwise an indeterminate shimmer is shown.
colorstring'var(--sk-accent)'Fill color (any CSS color value).
heightnumber2Bar height in pixels.
styleJSX.CSSPropertiesInline style overrides merged onto the fixed container.
classstringAdditional CSS class for the bar container.

* required prop.