Parameters
The corner radius in points. Larger values create more rounded corners.
Rounds the corners of this view with the specified radius.
.cornerRadius(radius: number): Component;
Rectangle()
.fill(Color("blue"))
.cornerRadius(8)
Rectangle()
.fill(Color("red"))
.frame({ width: 100, height: 100 })
.cornerRadius(25)
Rectangle()
.fill(Color("green"))
.frame({ width: 50, height: 50 })
.cornerRadius(25)