🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

Border

Defines the border for a TV component.

Source set: Android
class Border(
    val border: BorderStroke,
    val inset: Dp = 0.dp,
    val shape: Shape = ShapeTokens.BorderDefaultShape,
)

Defines the border for a TV component.

Parameters

border configures the width and brush for the border
inset defines how far (in dp) should the border be from the component it's applied to
shape defines the Shape of the border

Functions

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int

toString

Source set: Android
override fun toString(): String

copy

Source set: Android
fun copy(border: BorderStroke? = null, inset: Dp? = null, shape: Shape? = null): Border

Members

Companion

Source set: Android
companion object

Properties

None

Source set: Android
val None =
            Border(
                border = BorderStroke(width = 0.dp, color = Color.Transparent),
                inset = 0.dp,
                shape = RectangleShape,
            )

Signifies the absence of a border. Use this if you do not want to display a border indication in any of the TV Components.