🌈 Create new beautiful Compose Gradients with our new wesite ->
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.