Progress Donut
Displays an indicator showing the completion progress of a task as a circular progress bar.
The indicator color is inherited via currentColor. Override the default (accent-600) by setting the ProgressDonut.Indicator's text color.
Accessibility
ProgressDonut.Root renders role="progressbar" with aria-valuemin, aria-valuemax, and aria-valuenow, and omits aria-valuenow while indeterminate. The role needs a name: pass aria-label, or aria-labelledby that points at a visible label, or a screen reader announces a bare "progress bar".
Indeterminate value
Set the value prop to "indeterminate" to show the donut in an indeterminate state.
Control the rotation speed with the indeterminateRotationSpeed prop.
Dynamic colors
ProgressDonut.Indicator inherits its color from the parent text color through currentColor. Set the parent's text color to change the indicator based on the current progress value.
Composition
Compose the parts of a ProgressDonut together to build your own:
API Reference
ProgressDonut.Root
A simple circular progress bar which shows the completion progress of a task.
The indicator color is inherited via currentColor. Override the default (accent-600) by setting the ProgressDonut.Indicator's text color.
The ProgressDonut accepts the following props in addition to the standard HTML svg attributes.
ProgressDonut.Indicator
The indicator for the circular progress bar.
All props from svg g.