Divider

A divider is used to visually separate different types of content.

TypeResource
DesignFigma
MobileMobile Storybook
CodeGitlab
Divider Preview

Usage

To implement Divider, you can use this tag Divider in the Kotlin file.

  import id.co.biofarma.binduiandroid.components.divider.Divider
    Divider(
        type = "solid",
        direction = "horizontal",
        thickness = "thin"
    )

Examples

Type

Set the type prop to solid or dashed for different style.

Divider Type

Thickness

Set the thickness prop to thin, normal, or thicker for different weight of divider line.

Divider Thickness

Direction

Set the direction prop to horizontal or vertical.

Divider Direction

Custom the Color

Pass the color prop with color value to change the default color.

Divider Color

Props

PropsRequiredDefaultTypedescription
namefalse-stringName for the divider.
directionfalsehorizontalhorizontal verticalProvide direction of divider (horizontal or vertical) .
stylefalse-ModifierTo decorate or add behavior to Compose UI elements.
thicknessfalsethinthin normal thickerThe thickness width of the divider.
typefalsesolidsolid dashedThe visual style of the divider (solid or dashed).
colorfalse-colorCustom the divider color .
BIND © Biofarma Innovate Next-level Design .