KeyValueRow

fun KeyValueRow(key: String, value: String, modifier: Modifier = Modifier, valueStyle: TextStyle? = null, trailingContent: @Composable () -> Unit? = null)

A read-only label/value pair such as "Model · llama3" or "Port · 8080", for details panels and popovers. The value is end-aligned and wraps onto its own line when it cannot fit beside the label without splitting words. Screen readers read the pair as one item.

Parameters

valueStyle

the value's text style; null uses typography.bodyMedium. Pass MaterialTheme.kmpTypography.code for identifiers, paths, and arguments.

trailingContent

optional control after the value, such as a copy button.