Progress bar
Linear and circular indicators with precise Material motion.
Installation
Terminal
pnpm dlx shadcn@latest add https://react-toolbox.io/r/progress-bar.jsonNew here? Set up your project first. Styles, fonts, and required components are included.
Usage
Use mode="determinate" for measured progress; the default indeterminate mode shows ongoing work with an unknown amount. Give the indicator an aria-label describing the operation.
API reference
Key props and defaults. Full types and inline documentation are included with the source in material/progress-bar.
ProgressBar
| Property | Type | Default |
|---|---|---|
buffer | number | 0 |
max | number | 100 |
min | number | 0 |
mode | 'determinate' | 'indeterminate' | 'indeterminate' |
type | 'linear' | 'circular' | 'linear' |
value | number | 0 |
Material guidelines
- Use a determinate indicator when the amount of work is known, and an indeterminate indicator when it is unknown. The examples show separate operations.
- Use one indicator per operation. Keep determinate progress moving forward and label the operation so its meaning does not depend on motion alone.