← Back to Compose Multiplatform
HorizontalDivider
Component
in
Compose Multiplatform
. Since 1.6.0-alpha02
Overview
Examples
Community Notes
<a href="https://m3.material.io/components/divider/overview" class="external" target="_blank">Material Design divider</a>.
A divider is a thin line that groups content in lists and layouts.
!Divider image(https://developer.android.com/images/reference/androidx/compose/material3/divider.png)
@param modifier the Modifier to be applied to this divider line. @param thickness thickness of this divider line. Using Dp.Hairline will produce a single pixel divider regardless of screen density. @param color color of this divider line.
Overloads
HorizontalDivider
@Composable
fun HorizontalDivider(
modifier: Modifier = Modifier,
thickness: Dp = DividerDefaults.Thickness,
color: Color = DividerDefaults.color,
)
Parameters
Name | Description |
---|---|
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 |

Previous Component← FloatingActionButton
Next ComponentIcon →