<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



<h2 id="copy-width-brush">copy</h2>

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