---
title: "Border"
description: "Defines the border for a TV component."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
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

```kotlin
fun copy(border: BorderStroke? = null, inset: Dp? = null, shape: Shape? = null): Border
```

## Companion Object

#### Properties

<div class='sourceset sourceset-android'>Android</div>


```kotlin
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.





