Skip to content

Divider - Frameworks

A divider creates separation of content.

AndroidreleasediOSreleased

Android

Syntax

kotlin
@Composable
fun WarpDivider(
    modifier: Modifier = Modifier,
    orientation: Orientation = Orientation.Horizontal,
    dashed: Boolean = false
)

Visual options

Warp supports horizontal and vertical dividers. The divider can also be either solid or dashed.

kotlin
WarpDivider() // Basic usage, will fill width of parent
WarpDivider(
    modifier = Modifier.padding(dimensions.space2),
    orientation = Orientation.Vertical,
    dashed = true
)

Legacy support

Not supported

Parameters

Optional Props

NameTypeDefaultDescription
modifierModifierModifierModifier for the divider
orientationOrientation.Horizontal Orientation.VerticalOrientation.HorizontalOrientation of the divider
dashedBooleanfalseStyle of the divider, solid if false

Questions?

Feel free to ask any questions on usage in the Warp DS Slack channel: #warp-design-system