Google is committed to advancing racial equity for Black communities. See how.

BorderStroke

@Immutable data class BorderStroke
kotlin.Any
   ↳ androidx.compose.foundation.BorderStroke

Class to specify the stroke to draw border with.

Summary

Public constructors
<init>(width: Dp, brush: Brush)

Class to specify the stroke to draw border with.

Properties
Brush

brush to paint the border with

Dp

width of the border in Dp.

Public constructors

<init>

BorderStroke(
    width: Dp,
    brush: Brush)

Class to specify the stroke to draw border with.

Parameters
width: Dp width of the border in Dp. Use Dp.Hairline for one-pixel border.
brush: Brush brush to paint the border with

Properties

brush

val brush: Brush

brush to paint the border with

width

val width: Dp

width of the border in Dp. Use Dp.Hairline for one-pixel border.