Card

fun Card(modifier: Modifier = Modifier, title: @Composable () -> Unit = {}, action: @Composable () -> Unit = {}, description: @Composable () -> Unit = {}, contentPadding: PaddingValues = PaddingValues(16.dp), content: @Composable () -> Unit)

Rectangular surface that separates content into sections. For rounded and elevated card see SurfaceCard.

The content is by default surrounded with appropriate padding.

You can override the default padding with the contentPadding parameter. This allows the Card to be combined with other components that handle padding on their own, e.g. ListChoice.

Optionally, you can supply title and action that together make up a header for the Card. Appropriate text styles are provided. These slots are vertically aligned by their baselines.