Icons
Iconsanimated
Sunrise
A sun that rises above the horizon line, its rays growing — for morning or onboarding states.
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 Sunrise() {
val t = rememberInfiniteTransition(label = "sun")
val rise by t.animateFloat(4f, -2f, infiniteRepeatable(tween(1600, easing = EaseInOut), RepeatMode.Reverse), label = "r")
val color = Color(0xFFF59E0B)
Box(Modifier.size(40.dp), contentAlignment = Alignment.BottomCenter) {
Icon(Icons.Filled.WbSunny, "Sunrise", tint = color, modifier = Modifier.size(24.dp).offset(y = rise.dp))
Canvas(Modifier.matchParentSize()) { drawLine(color, Offset(4f, size.height * 0.8f), Offset(size.width - 4f, size.height * 0.8f), 3f, StrokeCap.Round) }
}
}