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

Border

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

Class to specify border appearance.

Summary

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

Class to specify border appearance.

Properties
Brush

brush to paint the border with

Dp

size of the border in Dp.

Public constructors

<init>

Border(
    size: Dp,
    brush: Brush)

Class to specify border appearance.

Parameters
size: Dp size 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

size

val size: Dp

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