← Back to Foundation
DrawBorder
Component
in
Foundation
. Since 0.1.0-dev15Overview
Code Examples
Returns a Modifier that adds border with appearance specified with size, color and a shape
Overloads
DrawBorder
@Deprecated(
"Use Modifier.drawBorder",
replaceWith = ReplaceWith(
"Modifier.drawBorder(size, color, shape)",
"androidx.compose.ui.Modifier",
"androidx.compose.foundation.drawBorder",
"androidx.compose.foundation.shape.RectangleShape"
)
)
@Composable
fun DrawBorder(size: Dp, color: Color, shape: Shape = RectangleShape)
Parameters
Name | Description |
---|---|
size | width of the border. Use Dp.Hairline for a hairline border. |
color | color to paint the border with |
shape | shape of the borde |
DrawBorder
@Deprecated(
"Use Modifier.drawBorder",
replaceWith = ReplaceWith(
"Modifier.drawBorder(size, brush, shape)",
"androidx.compose.ui.Modifier",
"androidx.compose.foundation.drawBorder",
"androidx.compose.foundation.shape.RectangleShape"
)
)
@Composable
fun DrawBorder(size: Dp, brush: Brush, shape: Shape)
Parameters
Name | Description |
---|---|
size | width of the border. Use Dp.Hairline for a hairline border. |
brush | brush to paint the border with |
shape | shape of the borde |