---
title: "MenuItemShapes"
description: "Represents the shapes used for a [DropdownMenuItem] in its various states."
type: "class"
---

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


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

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


```kotlin
@ExperimentalMaterial3ExpressiveApi
class MenuItemShapes(val shape: Shape, val selectedShape: Shape)
```


Represents the shapes used for a `DropdownMenuItem` in its various states.

#### Parameters

| | |
| --- | --- |
| shape | the `Shape` to use when the item is unselected. |
| selectedShape | the `Shape` to use when the item is selected. |



## Functions

```kotlin
fun copy(shape: Shape? = this.shape, selectedShape: Shape? = this.selectedShape) =
        MenuItemShapes(
            shape = shape.takeOrElse { this.shape },
            selectedShape = selectedShape.takeOrElse { this.selectedShape },
        )
```


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



