androidx.compose.foundation

BorderStroke

Class · from org.jetbrains.compose.foundation:foundation:1.12.2

No hand-written docs yet.

Class to specify the stroke to draw border with.

class BorderStroke(
    width: Dp,
    brush: Brush,
)

How to get one

Create it

Ready-made values and functions that return it

Used by

Parameters that take a BorderStroke.

6 more

Properties

width

val width: Dp

brush

val brush: Brush

Functions

copy

fun copy(
    width: Dp = this.width,
    brush: Brush = this.brush,
): BorderStroke
Library docs

Class to specify the stroke to draw border with.