Function

border

Draws a border around the element.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

border

Android
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 is used, only the RemoteRoundedCornerShape.topStart corner size is currently taken into consideration for all corners.