Function

CornerRadius

Constructs a Radius with the given x and y parameters for the size of the radius along the x and y axis respectively.

CornerRadius

Source set: Common
public inline fun CornerRadius(x: Float, y: Float = x): CornerRadius

Constructs a Radius with the given x and y parameters for the size of the radius along the x and y axis respectively. By default the radius along the Y axis matches that of the given x-axis unless otherwise specified. Negative radii values are clamped to 0.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: