BorderKt

Added in 1.3.0-alpha07

public final class BorderKt


Summary

Public methods

static final @NonNull LayoutModifier
border(
    @NonNull LayoutModifier receiver,
    @Dimension(unit = 0) float width,
    @NonNull LayoutColor color
)

Adds a modifier to apply a border around an element.

Public methods

public static final @NonNull LayoutModifier border(
    @NonNull LayoutModifier receiver,
    @Dimension(unit = 0) float width,
    @NonNull LayoutColor color
)

Adds a modifier to apply a border around an element.

Parameters
@Dimension(unit = 0) float width

The width of the border, in DP.

@NonNull LayoutColor color

The color of the border.