ProgressBar
A determinate or indeterminate progress indicator with ARIA values.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen 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
| Prop | Type | Required | Description |
|---|---|---|---|
value | number | — | |
min | number | — | |
max | number | — | |
label | string | — | |
showValue | boolean | — | |
tone | "accent" | "positive" | "notice" | "negative" | — | |
isIndeterminate | boolean | — | |
formatValue | (value: number) => string | — | Custom value formatter, e.g. (v) => ${v} / 200 MB. |
className | string | — |