Composables
Components Unstyled Icons API
Join Radar
Join Radar Components Unstyled Icons API UI Kit UI Blocks SVG to Compose Android Distribution Community Docs Blog Colors
Wear Material Compose
  • Alert
  • AppCard
  • Button
  • Card
  • Checkbox
  • Chip
  • CircularProgressIndicator
  • CompactButton
  • CompactChip
  • Confirmation
  • Dialog
  • HorizontalPageIndicator
  • Icon
  • InlineSlider
  • ListHeader
  • MaterialTheme
  • OutlinedButton
  • OutlinedChip
  • OutlinedCompactButton
  • OutlinedCompactChip
  • Picker
  • PickerGroup
  • PositionIndicator
  • ProvideTextStyle
  • RadioButton
  • Scaffold
  • ScalingLazyColumn
  • SelectableChip
  • SplitSelectableChip
  • SplitToggleChip
  • Stepper
  • SwipeToDismissBox
  • SwipeToRevealCard
  • SwipeToRevealChip
  • SwipeToRevealPrimaryAction
  • SwipeToRevealSecondaryAction
  • SwipeToRevealUndoAction
  • Switch
  • Text
  • TimeText
  • TitleCard
  • ToggleButton
  • ToggleChip
  • Vignette
Components › Wear Material Compose › ListHeader

ListHeader

View Markdown Open in ChatGPT Open in Claude

A slot based composable for creating a list header item.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
API Examples

ListHeader

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
InlineSlider ← Previous MaterialTheme Next →
On this page
  • ListHeader

Never miss a Compose release

Get an alert the moment a new Compose release is out: new APIs, new components, new things to experiment with. Straight from Google's servers.

Join 3,000+ Compose developers. No spam, ever.