Compose Component

VerticalDivider

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

VerticalDivider social preview

VerticalDivider

Source set: Common
@Composable
public fun VerticalDivider(
    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: