---
title: "RemoteBorderStroke"
description: "Represents a border stroke style to be drawn around a Remote Compose component."
type: "class"
lastmod: "2026-10-07"
---
## API Reference

> Source set: Android

```kotlin
public class RemoteBorderStroke(
    public val width: RemoteDp,
    public val brush: RemoteBrush,
)
```

Represents a border stroke style to be drawn around a Remote Compose component.

#### Parameters

| | |
| --- | --- |
| width | The stroke width of the border. |
| brush | The [RemoteBrush](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteBrush) to be used to draw the border stroke. |

## Functions

### equals

> Source set: Android

```kotlin
override fun equals(other: Any?): Boolean
```

### hashCode

> Source set: Android

```kotlin
override fun hashCode(): Int
```

### toString

> Source set: Android

```kotlin
override fun toString(): String
```

### copy

> Source set: Android

```kotlin
public fun copy(
        width: RemoteDp = this.width,
        brush: RemoteBrush = this.brush,
    ): RemoteBorderStroke
```

Creates a copy of this [RemoteBorderStroke](/jetpack-compose/androidx.wear.compose.remote/remote-material3/functions/RemoteBorderStroke/api) with the specified `width` and `brush`.
