Skip to Content
glob.ui home
Components

Progress

A progress bar, determinate with a value or indeterminate while the length is unknown.

Server componentNo state or handlers. Safe to render in a Server Component.
import { Progress, progressVariants } from "@glob-ui/progress"

Preview

Examples

Tones

tone is primary (default), success, warning or danger. size is sm, md (default) or lg.

Indeterminate

Pass value={null} (or leave it out) when the length is unknown. The bar slides; with reduced motion it pulses.

API

Props are generated from the TypeScript types in the package source.

ProgressProps

Prop

Type

Accessibility

Key or actionBehaviour
Screen readersrole="progressbar" with aria-valuemin, aria-valuemax, aria-valuenow and aria-valuetext.
IndeterminateNo aria-valuenow: the state is announced without a number.
ValuesClamped to 0 through max.

ARIA. A progress bar needs a name: pass aria-label, or aria-labelledby pointing at a visible label. getValueLabel changes the text read instead of the number, for example "2 of 5 files".

On this page