androidx.compose.foundation.shape

RoundedCornerShape

Class · from org.jetbrains.compose.foundation:foundation:1.12.2

A shape with rounded corners. This is the one you will create most often.

RoundedCornerShape(8.dp)                  // all corners
RoundedCornerShape(percent = 50)          // pill or circle
RoundedCornerShape(topStart = 16.dp, bottomEnd = 16.dp)  // some corners

start is the left side in left-to-right languages, and the right side in right-to-left languages.

class RoundedCornerShape(
    topStart: CornerSize,
    topEnd: CornerSize,
    bottomEnd: CornerSize,
    bottomStart: CornerSize,
) : CornerBasedShape

Is a

How to get one

Create it

Ready-made values and functions that return it