Divider

Functions summary

Unit
@Composable
Divider(modifier: Modifier, color: Color, thickness: Dp, startIndent: Dp)

Material Design divider

Cmn

Functions

Divider

@Composable
fun Divider(
    modifier: Modifier = Modifier,
    color: Color = MaterialTheme.colors.onSurface.copy(alpha = DividerAlpha),
    thickness: Dp = 1.dp,
    startIndent: Dp = 0.dp
): Unit

Material Design divider

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

Dividers
image

Parameters
modifier: Modifier = Modifier

Modifier to be applied to the divider line

color: Color = MaterialTheme.colors.onSurface.copy(alpha = DividerAlpha)

color of the divider line

thickness: Dp = 1.dp

thickness of the divider line, 1 dp is used by default. Using Dp.Hairline will produce a single pixel divider regardless of screen density.

startIndent: Dp = 0.dp

start offset of this line, no offset by default