Skip to main content

ProgressBar

A determinate or indeterminate progress indicator with ARIA values.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

A determinate or indeterminate progress indicator with ARIA values.

Accessibility​

Status messages use role="status" / aria-live="polite" (or assertive for errors) so updates are announced without stealing focus.

Install and import​

npx shadcn@latest add @prism/progress-bar
import { ProgressBar } from '@/components/prism/ProgressBar';

In a no-build prototype, read it from the bundle instead: const { ProgressBar } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
valuenumber—
minnumber—
maxnumber—
labelstring—
showValueboolean—
tone"accent" | "positive" | "notice" | "negative"—
isIndeterminateboolean—
formatValue(value: number) => string—Custom value formatter, e.g. (v) => ${v} / 200 MB.
classNamestring—