androidx.compose.material3
CircularProgressIndicator
Composable function
One of the progress indicator types. It works like LinearProgressIndicator. Only the parameters that differ are described here.
A ring that fills up, or spins when you pass no progress.

Row(horizontalArrangement = Arrangement.spacedBy(24.dp)) {
CircularProgressIndicator(progress = { 0.6f })
CircularProgressIndicator()
}
Known progress
Takes progress. Fills from 0 to 1.
@Composable
fun CircularProgressIndicator(
progress: () -> Float,
modifier: Modifier = Modifier,
color: Color = ProgressIndicatorDefaults.circularColor,
strokeWidth: Dp = ProgressIndicatorDefaults.CircularStrokeWidth,
trackColor: Color = ProgressIndicatorDefaults.circularDeterminateTrackColor,
strokeCap: StrokeCap = ProgressIndicatorDefaults.CircularDeterminateStrokeCap,
gapSize: Dp = ProgressIndicatorDefaults.CircularIndicatorTrackGapSize,
)
strokeWidth: DpOptional
strokeWidth: DpOptionalDefault: ProgressIndicatorDefaults.CircularStrokeWidth
How thick the circle is.
Defaults that differ from LinearProgressIndicator:
color=ProgressIndicatorDefaults.circularColortrackColor=ProgressIndicatorDefaults.circularDeterminateTrackColorstrokeCap=ProgressIndicatorDefaults.CircularDeterminateStrokeCapgapSize=ProgressIndicatorDefaults.CircularIndicatorTrackGapSize
Same as in LinearProgressIndicator: progress, modifier, color, trackColor, strokeCap, gapSize.
Unknown progressSince 1.9
No progress. Moves in a loop.
@Composable
fun CircularProgressIndicator(
modifier: Modifier = Modifier,
color: Color = ProgressIndicatorDefaults.circularColor,
strokeWidth: Dp = ProgressIndicatorDefaults.CircularStrokeWidth,
trackColor: Color = ProgressIndicatorDefaults.circularIndeterminateTrackColor,
strokeCap: StrokeCap = ProgressIndicatorDefaults.CircularIndeterminateStrokeCap,
gapSize: Dp = ProgressIndicatorDefaults.CircularIndicatorTrackGapSize,
)
Defaults that differ from LinearProgressIndicator:
color=ProgressIndicatorDefaults.circularColortrackColor=ProgressIndicatorDefaults.circularIndeterminateTrackColorstrokeCap=ProgressIndicatorDefaults.CircularIndeterminateStrokeCapgapSize=ProgressIndicatorDefaults.CircularIndicatorTrackGapSize
Same as in LinearProgressIndicator: modifier, color, trackColor, strokeCap, gapSize.
Same as above: strokeWidth.
Progress indicator types
LinearProgressIndicatorCircularProgressIndicatorLinearWavyProgressIndicatorCircularWavyProgressIndicator