Horizontal
Column {
Text("Above the line")
HorizontalDivider()
Text("Below the line")
} Horizontal and vertical thin separating lines
Dividers are thin lines that group content into sections. Use a HorizontalDivider between stacked items and a VerticalDivider inside a fixed-height row to separate side-by-side content.
Column {
Text("Above the line")
HorizontalDivider()
Text("Below the line")
} A VerticalDivider needs a bounded height from its parent row.
Row(modifier = Modifier.height(24.dp)) {
Text("Left")
VerticalDivider()
Text("Right")
}