---
title: "Shapes"
description: "Components are grouped into shape categories based on common features. These categories provide a
way to change multiple component values at once, by changing the category’s values."
type: "class"
---

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


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

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public class Shapes(
    /** Buttons and Chips use this shape */
    public val small: CornerBasedShape = RoundedCornerShape(corner = CornerSize(50)),
    public val medium: CornerBasedShape = RoundedCornerShape(4.dp),
    /** Cards use this shape */
    public val large: CornerBasedShape = RoundedCornerShape(26.dp),
)
```


Components are grouped into shape categories based on common features. These categories provide a
way to change multiple component values at once, by changing the category’s values.


## Functions

```kotlin
public fun copy(
        small: CornerBasedShape = this.small,
        medium: CornerBasedShape = this.medium,
        large: CornerBasedShape = this.large,
    ): Shapes
```


Returns a copy of this Shapes, optionally overriding some of the values.



