Icons
Iconsanimated
Orbit
An indeterminate loader: a comet arc sweeps a faint track with a trailing head dot.
Installation
caveui components are copy-paste Jetpack Compose built entirely on Material 3 — there's no caveui dependency to add. Make sure Material 3 is on your classpath (it ships with the Compose BOM), then copy the Usage snippet below into your project.
kotlin
// build.gradle.kts (module)
dependencies {
implementation(platform("androidx.compose:compose-bom:2025.06.00"))
implementation("androidx.compose.material3:material3")
}Usage
kotlin
@Composable
fun OrbitSpinner() {
val angle by rememberInfiniteTransition(label = "orbit").animateFloat(
0f, 360f, infiniteRepeatable(tween(1000, easing = LinearEasing)), label = "a",
)
val color = MaterialTheme.colorScheme.primary
Canvas(Modifier.size(40.dp)) {
val s = Stroke(3.dp.toPx(), cap = StrokeCap.Round)
drawCircle(color.copy(alpha = 0.18f), style = s)
rotate(angle) {
drawArc(color, -90f, 120f, false, style = s)
drawCircle(color, 2.5.dp.toPx(), Offset(size.width / 2, s.width / 2))
}
}
}