---
title: "IconButtonShapes"
description: "Represents the shapes used for [IconButton] in various states.

If [pressedShape] is non null the shape will be animated on press."
type: "class"
---

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


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

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


```kotlin
public class IconButtonShapes(public val shape: Shape, public val pressedShape: Shape = shape)
```


Represents the shapes used for `IconButton` in various states.

If `pressedShape` is non null the shape will be animated on press.

#### Parameters

| | |
| --- | --- |
| shape | the shape of the icon button when enabled |
| pressedShape | the shape of the icon button when pressed |



## Functions

```kotlin
public fun copy(
        shape: Shape? = this.shape,
        pressedShape: Shape? = this.pressedShape,
    ): IconButtonShapes
```


