Skip to content

Progress

SProgress is a progress indicator built on Reka UI (role="progressbar", correct aria-valuenow/aria-valuemax). It supports variants, sizes and an indeterminate mode (without value).

Value and variants

Sizes

Indeterminate progress

Without value the bar is animated (for example, while the upload size is still unknown).

Custom maximum

The max prop sets the value that corresponds to 100% of the bar. Here 120 out of 200 is 60% filled.

Color

The color prop sets the fill color from the palette and overrides the variant color.

API

Props

NameTypeDefaultDescription
valuenull | numbernullCurrent value. null or unset means indeterminate progress (animated).
maxnumber100Maximum value (100% of the scale).
size"md" | "sm" | "lg""md"Bar thickness: sm/md/lg.
variant | "primary" | "positive" | "negative" | "warning""primary"Fill color variant.
colorstringundefinedAccent color: a name from the palette (primary/teal/teal-10). Overrides the variant color.
labelstringundefinedAccessible name (aria-label) when there is no visible label.