> Documentation index: https://developer.android.com/reference/llms.txt

# MenuItemShapes

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/Menu.kt+class:androidx.compose.material3.MenuItemShapes) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.5.0) Common/AllAndroid/JVM
- Cmn

  ```
  class MenuItemShapes
  ```

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|---|
| `MenuItemShapes(shape: Shape, selectedShape: Shape)` | Cmn |

| ### Public functions |
|---|---|---|
| `MenuItemShapes` | `copy(shape: Shape?, selectedShape: Shape?)` Returns a copy of this MenuItemShapes, optionally overriding some of the values. | Cmn |
| `open operator Boolean` | `equals(other: Any?)` | Cmn |
| `open Int` | `hashCode()` | Cmn |

| ### Public properties |
|---|---|---|
| `Shape` | `selectedShape` the `Shape` to use when the item is selected. | Cmn |
| `Shape` | `shape` the `Shape` to use when the item is unselected. | Cmn |

## Public constructors

### MenuItemShapes

Cmn Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.5.0)

```
MenuItemShapes(shape: Shape, selectedShape: Shape)
```

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

## Public functions

### copy

Cmn Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.5.0)

```
fun copy(shape: Shape? = this.shape, selectedShape: Shape? = this.selectedShape): MenuItemShapes
```

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

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

## Public properties

### selectedShape

Cmn Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.5.0)

```
val selectedShape: Shape
```

the `Shape` to use when the item is selected.

### shape

Cmn Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.5.0)

```
val shape: Shape
```

the `Shape` to use when the item is unselected.