Skip to content

Divider

@Composable



fun Divider(
    modifier: Modifier = Modifier, 
    color: Int = KColor.GRAY.argb, 
    thickness: Int = 1, 
    vertical: Boolean = false
)

Draws a thin horizontal or vertical separator line.

Parameters

  • color: The line's fill color, as an ARGB int.

  • thickness: The line's thickness in pixels along its short axis.

  • vertical: When true, the line fills its height and is thickness pixels wide; when false (default), it fills its width and is thickness pixels tall.