New Compose Multiplatform components arrived on Composables UICheck it out →

VerticalDivider

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

Divider
image

Last updated:

Installation

dependencies {
   implementation("androidx.compose.material3:material3:1.3.0-beta03")
}

Overloads

@Composable
fun VerticalDivider(
    modifier: Modifier = Modifier,
    thickness: Dp = DividerDefaults.Thickness,
    color: Color = DividerDefaults.color,
)

Parameters

namedescription
modifierthe [Modifier] to be applied to this divider line.
thicknessthickness of this divider line. Using [Dp.Hairline] will produce a single pixel divider regardless of screen density.
colorcolor of this divider line.