by @alexstyl
✉️ Leave your feedback

← Back to Foundation

border

Modifier
in
Foundation
. Since 0.1.0-dev17

Overview

Examples

Community Notes

Modify element to add border with appearance specified with a width, a color and a shape and clip it.

Overloads

border

fun Modifier.border(width: Dp, color: Color, shape: Shape = RectangleShape)

Parameters

NameDescription
widthwidth of the border. Use Dp.Hairline for a hairline border.
colorcolor to paint the border with
shapeshape of the borde

border

fun Modifier.border(width: Dp, brush: Brush, shape: Shape)

Parameters

NameDescription
widthwidth of the border. Use Dp.Hairline for a hairline border.
brushbrush to paint the border with
shapeshape of the borde
Next ComponentBaseTextField