Cards
Cards

Podcast Episode

Podcast episode card with show artwork, duration chip and a quick play action.

Deep Dive
The Future of Sound
48 min

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 PodcastEpisode(
  show: String,
  episode: String,
  duration: String,
) {
  OutlinedCard(
    shape = RoundedCornerShape(20.dp),
    modifier = Modifier.fillMaxWidth(),
  ) {
    Row(Modifier.padding(14.dp)) {
      Box(
        modifier = Modifier
          .size(64.dp)
          .clip(RoundedCornerShape(14.dp))
          .background(
            Brush.linearGradient(
              listOf(Color(0xFF0EA5E9), Color(0xFF6366F1)),
            ),
          ),
        contentAlignment = Alignment.Center,
      ) {
        Icon(
          Icons.Default.Mic,
          contentDescription = null,
          tint = Color.White,
        )
      }
      Spacer(Modifier.width(14.dp))
      Column(Modifier.weight(1f)) {
        Text(
          show,
          style = MaterialTheme.typography.labelMedium,
          color = MaterialTheme.colorScheme.primary,
        )
        Text(
          episode,
          style = MaterialTheme.typography.titleSmall,
          maxLines = 2,
        )
        Spacer(Modifier.height(6.dp))
        AssistChip(
          onClick = {},
          label = { Text(duration) },
          leadingIcon = {
            Icon(
              Icons.Default.PlayArrow,
              contentDescription = null,
            )
          },
        )
      }
    }
  }
}