Compose Component

HorizontalDivider

Material Design divider A divider is a thin line that groups content in lists and layouts.

HorizontalDivider social preview

HorizontalDivider

Source set: Common
@Composable
public fun HorizontalDivider(
    modifier: Modifier = Modifier,
    thickness: Dp = DividerDefaults.Thickness,
    color: Color = DividerDefaults.color,
): Unit

Parameters

modifier the Modifier to be applied to this divider line.
thickness thickness of this divider line. Using Dp.Hairline will produce a single pixel divider regardless of screen density.
color color of this divider line.
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: