Import
Basic Usage
API Reference
MatProgressSpinner
Selector:mat-progress-spinner, mat-spinner
Exported as: matProgressSpinner
Properties
| Name | Type | Description |
|---|---|---|
@Input() color | ThemePalette | Theme color. Options: ‘primary’, ‘accent’, ‘warn’ |
@Input() mode | ProgressSpinnerMode | Mode. Options: ‘determinate’, ‘indeterminate’ |
@Input() value | number | Progress value (0-100) for determinate mode |
@Input() diameter | number | Diameter of the spinner in pixels. Default: 100 |
@Input() strokeWidth | number | Stroke width as percentage of diameter |
Modes
Indeterminate
Shows continuous spinning animation:Determinate
Shows specific progress value:Examples
Different Sizes
With Color
Custom Stroke Width
Loading Overlay
Determinate Progress
Accessibility
- Has
role="progressbar" - Uses
aria-valuemin,aria-valuemax,aria-valuenow aria-valuenowis only set in determinate mode- Tab index set to -1 for screen reader compatibility
- Consider adding
aria-labelfor context: