
Progress bar with determinate and indeterminate states.
npx shadcn@latest add https://ui.edbn.me/r/progress.jsonGroups all parts of the progress bar. Renders a div element.
valuenumber | nullnullCurrent value (null = indeterminate)
minnumber0Minimum value
maxnumber100Maximum value
getAriaValueTextfunctionFunction returning aria-valuetext
classNamestring | functionCSS class name
renderReactElement | functionCustom render function
| Attribute | Description |
|---|---|
| data-complete | Present when value === max |
| data-indeterminate | Present when value is null |
| data-progressing | Present when value > 0 and < max |
| Variable | Description |
|---|---|
| --progress-value | Normalized value between 0 and 1 |
The background track for the progress bar. Renders a span element.
classNamestring | functionCSS class name
renderReactElement | functionCustom render function
The filled indicator showing progress. Renders a span element.
classNamestring | functionCSS class name
renderReactElement | functionCustom render function
An accessible label for the progress bar. Renders a span element.
classNamestring | functionCSS class name
renderReactElement | functionCustom render function