← Back to Foundation
border
Modifier
in
Foundation
. Since 0.1.0-dev17Overview
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
Name | Description |
---|---|
width | width of the border. Use Dp.Hairline for a hairline border. |
color | color to paint the border with |
shape | shape of the borde |
border
fun Modifier.border(width: Dp, brush: Brush, shape: Shape)
Parameters
Name | Description |
---|---|
width | width of the border. Use Dp.Hairline for a hairline border. |
brush | brush to paint the border with |
shape | shape of the borde |
Next ComponentBaseTextField →