by @alexstyl
✉️ Leave your feedback

← Back to Wear Material

ListHeader

Component
in
Wear Material
. Since 1.0.0

Overview

Examples

Community Notes

Video

A slot based composable for creating a list header item. List header items are typically expected to be text. The contents provided will have text and colors effects applied based on the MaterialTheme. The contents will be start and end padded.

Overloads

ListHeader

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

Parameters

NameDescription
modifierThe modifier for the list header
backgroundColorThe background color to apply - typically Color.Transparent
contentColorThe color to apply to conten
Previous ComponentInlineSlider
Next ComponentMaterialTheme