---
title: "CutCornerShape"
description: "A shape describing the rectangle with cut corners. Corner size is representing the cut length -
the size of both legs of the cut's right triangle.

This shape will automatically mirror the corner sizes in [LayoutDirection.Rtl], use
[AbsoluteCutCornerShape] for the layout direction unaware version of this shape."
type: "class"
---

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


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class CutCornerShape(
    topStart: CornerSize,
    topEnd: CornerSize,
    bottomEnd: CornerSize,
    bottomStart: CornerSize,
) :
    CornerBasedShape(
        topStart = topStart,
        topEnd = topEnd,
        bottomEnd = bottomEnd,
        bottomStart = bottomStart,
    )
```


A shape describing the rectangle with cut corners. Corner size is representing the cut length -
the size of both legs of the cut's right triangle.

This shape will automatically mirror the corner sizes in `LayoutDirection.Rtl`, use
`AbsoluteCutCornerShape` for the layout direction unaware version of this shape.

#### Parameters

| | |
| --- | --- |
| topStart | a size of the top start corner |
| topEnd | a size of the top end corner |
| bottomEnd | a size of the bottom end corner |
| bottomStart | a size of the bottom start corner |




