Divider

Divider

A thin line that groups content in lists and layouts.

Installation

./gradlew lumo --add Divider

Usage

Horizontal Divider

HorizontalDivider(
    modifier = Modifier.fillMaxWidth(),
    thickness = 1.dp,
    color = AppTheme.colors.surface
)

Vertical Divider

VerticalDivider(
    modifier = Modifier.fillMaxHeight(),
    thickness = 1.dp,
    color = AppTheme.colors.surface
)

API Documentation

Divider Types

ComponentDescription
HorizontalDividerLine that spans horizontally
VerticalDividerLine that spans vertically

Parameters

ParameterTypeDescription
modifierModifierModifier for the divider
thicknessDpThickness of the divider line
colorColorColor of the divider