KCardHeader
fun KCardHeader(modifier: Modifier = Modifier, action: @Composable () -> Unit? = null, content: @Composable ColumnScope.() -> Unit)(source)
A container for card titles and descriptions, with an optional trailing action slot.
Respects androidx.compose.ui.platform.LocalLayoutDirection for proper alignment of content and action.
Example usage:
KCardHeader(
action = {
IconButton(onClick = { /* ... */}) {
Icon(Icons.Default.MoreVert, contentDescription = "Settings")
}
}
) {
KCardTitle("Project Status")
KCardDescription("Current progress of the Kindling library.")
}Content copied to clipboard
Parameters
modifier
The modifier to be applied to the header layout.
action
Optional trailing composable slot (e.g., for a menu button or badge).
content
The title and description components.