<h2 id="border-width-color-shape">border</h2>

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

```kotlin
public fun RemoteModifier.border(
    width: RemoteDp,
    color: RemoteColor,
    shape: RemoteShape = RemoteRectangleShape,
): RemoteModifier
```

Draws a border around the element.

#### Parameters

| | |
| --- | --- |
| width | The width of the border. |
| color | The color of the border. |
| shape | The shape of the border. When [RemoteRoundedCornerShape](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/RemoteRoundedCornerShape) is used, only the [RemoteRoundedCornerShape.topStart](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/RemoteRoundedCornerShape) corner size is currently taken into consideration for all corners. |