outerBorder

fun Modifier.outerBorder(    width: Dp,     color: Color,     shape: Shape = RectangleShape,     insetWidth: Dp = Dp.Unspecified,     insetColor: Color = Color.Unspecified): Modifier

Modify element to add an outer border (drawn outside the element) with appearance specified with a width, a color and a shape.

Parameters

width

The width of the border in dp. Use Dp.Hairline for a hairline border.

color

The color to paint the border with.

shape

The shape of the border.

insetWidth

The width of the border inset in dp. Use Dp.Hairline for a hairline border inset.

insetColor

The color to paint the border inset with.