Compose Component

ListHeader

A slot based composable for creating a list header item.

ListHeader

Source set: Android
@Composable
public fun ListHeader(
    modifier: Modifier = Modifier,
    backgroundColor: Color = Color.Transparent,
    contentColor: Color = MaterialTheme.colors.onSurfaceVariant,
    content: @Composable RowScope.() -> Unit,
)

Parameters

modifier The modifier for the list header
backgroundColor The background color to apply - typically Color.Transparent
contentColor The color to apply to content
content Slot for displayed header text
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: