---
title: "BorderStroke"
description: "Class to specify the stroke to draw border with."
type: "class"
---

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


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

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class BorderStroke(val width: Dp, val brush: Brush)
```


Class to specify the stroke to draw border with.

#### Parameters

| | |
| --- | --- |
| width | width of the border in `Dp`. Use `Dp.Hairline` for one-pixel border. |
| brush | brush to paint the border with |



## Functions

```kotlin
fun copy(width: Dp = this.width, brush: Brush = this.brush): BorderStroke
```


