CardView

fun CardView(cardInfo: CardInfo, modifier: Modifier = Modifier, shape: Shape = RoundedCornerShape(24.dp), elevation: Dp = 12.dp, contentScale: ContentScale = ContentScale.FillWidth)

A composable that displays a card's artwork with rounded corners, shadow elevation, and badges.

Parameters

cardInfo

The CardInfo containing the artwork and badges to display.

modifier

The modifier to be applied to the card container.

shape

The shape for the rounded corners. Defaults to RoundedCornerShape(24.dp).

elevation

The shadow elevation for the card. Defaults to 12.dp.

contentScale

The content scale for the card art image. Defaults to ContentScale.FillWidth.