---
title: "CornerRadius"
description: "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."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline fun CornerRadius(x: Float, y: Float = x) = CornerRadius(packFloats(x, y))
```


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.



