Parameters
Configuration for the rounded rectangle.
A rectangular shape with rounded corners.
RoundedRectangle(props: { cornerRadius?: number }): Shape;
Show properties
RoundedRectangle({})
.fill(Color("blue"))
.frame({ width: 200, height: 100 })
RoundedRectangle({ cornerRadius: 20 })
.fill(Color("green"))
.frame({ width: 150, height: 150 })
RoundedRectangle({ cornerRadius: 12 })
.stroke({ style: Color("red"), lineWidth: 3 })
.frame({ width: 180, height: 80 })
RoundedRectangle({ cornerRadius: 16 })
.fill(Color("white"))
.shadow({ radius: 8, x: 0, y: 4 })
.frame({ width: 300, height: 200 })
RoundedRectangle({ cornerRadius: 50 })
.fill(LinearGradient({
colors: [Color("yellow"), Color("orange")]
}))
.frame({ width: 100, height: 100 })