HorizontalDivider
Common
Component in Material 3 Compose
A divider is a thin line that groups content in lists and layouts.
Last updated:
Installation
dependencies {
implementation("androidx.compose.material3:material3:1.4.0-alpha02")
}
Overloads
@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. |