Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
LayoutAndroid

Divider

Separate related native content with the shared semantic line role.

Public APILumenDividerAndroid / Compose

Native example

Use Divider

Use a divider only when spacing and grouping are insufficient to communicate a boundary. Avoid creating dense grids of lines.

Divider rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenDivider()

Reference

Public API

The primary shared and platform-specific options exposed by LumenDivider.

APIValues or typeDefaultDescription
modifierNative layout APIControls placement and length.
colorSemantic line rolelineUses the generated divider color.

Native behavior

Design and accessibility

When to use it

Use a divider only when spacing and grouping are insufficient to communicate a boundary. Avoid creating dense grids of lines.

Accessibility

The divider is decorative and is hidden from assistive technology.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module