Cards
Cardsanimated

Check-in Reminder

Check-in reminder with animated ringing bell and time-window countdown.

Online check-in opens

in 2 hours · UA 884

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 CheckinReminderCard() {
  val swing = rememberInfiniteTransition(label = "s")
  val a by swing.animateFloat(
    -15f, 15f, infiniteRepeatable(
      tween(400), RepeatMode.Reverse
    ), label = "a"
  )
  OutlinedCard(
    modifier = Modifier.fillMaxWidth().padding(16.dp)
  ) {
    Row(
      Modifier.padding(18.dp),
      verticalAlignment = Alignment.CenterVertically
    ) {
      Canvas(
        Modifier.size(32.dp).graphicsLayer { rotationZ = a }
      ) {
        drawArc(
          Color(0xFFEF4444), 180f, 180f, true,
          topLeft = Offset(4f, 4f),
          size = Size(size.width - 8f, size.height - 8f)
        )
      }
      Spacer(Modifier.width(14.dp))
      Column {
        Text("Online check-in opens",
          style = MaterialTheme.typography.bodyMedium)
        Text("in 2 hours · UA 884",
          style = MaterialTheme.typography.bodySmall)
      }
    }
  }
}