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

ScalingLazyColumnWithHeaders

@Composable
fun ScalingLazyColumnWithHeaders() {
    ScalingLazyColumn(modifier = Modifier.fillMaxWidth()) {
        item { ListHeader { Text("Header1") } }
        items(5) {
            Chip(
                onClick = {},
                label = { Text("List item $it") },
                colors = ChipDefaults.secondaryChipColors(),
            )
        }
        item { ListHeader { Text("Header2") } }
        items(5) {
            Chip(
                onClick = {},
                label = { Text("List item ${it + 5}") },
                colors = ChipDefaults.secondaryChipColors(),
            )
        }
    }
}
On this page
  • ScalingLazyColumnWithHeaders

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.