ProgressSpinner is a process status indicator.
import { ProgressSpinner } from 'primereact/progressspinner';
<script src="https://unpkg.com/primereact/core/core.min.js"></script>
<script src="https://unpkg.com/primereact/progressspinner/progressspinner.min.js"></script>
ProgressSpinner is defined using ProgressSpinner element.
<ProgressSpinner/>
Colors of the spinner can be changed by overriding the keyframes animation
@keyframes p-progress-spinner-color {
100%,
0% {
stroke: #d62d20;
}
40% {
stroke: #0057e7;
}
66% {
stroke: #008744;
}
80%,
90% {
stroke: #ffa700;
}
}
Name | Type | Default | Description |
---|---|---|---|
id | string | null | Unique identifier of the element. |
style | object | null | Inline style of the element. |
className | string | null | Style class of the element. |
strokeWidth | string | 2 | Width of the circle stroke. |
fill | string | null | Color for the background of the circle. |
animationDuration | string | 2s | Duration of the rotate animation. |
Following is the list of structural style classes, for theming classes visit theming page.
Name | Element |
---|---|
p-progress-spinner | Container element. |
p-progress-circle | SVG element. |
p-progress-path | Circle element. |
This section is under development. After the necessary tests and improvements are made, it will be shared with the users as soon as possible.
None.
Built-in component themes created by the PrimeReact Theme Designer.
Premium themes are only available exclusively for PrimeReact Theme Designer subscribers and therefore not included in PrimeReact core.
Beautifully crafted premium create-react-app application templates by the PrimeTek design team.