Card

fun Card(modifier: Modifier = Modifier, cornerRadius: Dp = CardDefaults.CornerRadius, insideMargin: PaddingValues = CardDefaults.InsideMargin, colors: CardColors = CardDefaults.defaultColors(), content: @Composable ColumnScope.() -> Unit)

A Card component with Miuix style. Card contain content and actions that relate information about a subject.

This Card does not handle input events

Parameters

modifier

The modifier to be applied to the Card.

cornerRadius

The corner radius of the Card.

insideMargin

The margin inside the Card.

colors

CardColors that will be used to resolve the color(s) used for the Card.

content

The Composable content of the Card.


fun Card(modifier: Modifier = Modifier, cornerRadius: Dp = CardDefaults.CornerRadius, insideMargin: PaddingValues = CardDefaults.InsideMargin, colors: CardColors = CardDefaults.defaultColors(), pressFeedbackType: PressFeedbackType = PressFeedbackType.None, showIndication: Boolean = false, holdDownState: Boolean = false, onClick: () -> Unit? = null, onLongPress: () -> Unit? = null, content: @Composable ColumnScope.() -> Unit)

A Card component with Miuix style. Card contain contain content and actions that relate information about a subject.

This Card handles input events

Parameters

modifier

The modifier to be applied to the Card.

cornerRadius

The corner radius of the Card.

insideMargin

The margin inside the Card.

colors

CardColors that will be used to resolve the color(s) used for the Card.

pressFeedbackType

The press feedback type of the Card.

showIndication

Whether to show indication of the Card.

holdDownState

Whether the Card is in a hold-down state.

onClick

The callback to be invoked when the Card is clicked.

onLongPress

The callback to be invoked when the Card is long pressed.

content

The Composable content of the Card.