<div class='type'>Composable Component</div>



A dropdown menu is a compact way of displaying multiple choices. It appears upon interaction with
an element (such as an icon or button) or when users perform a specific action.

<img loading='lazy' class='hero-img' alt='Menus image' src='/static/images/material/menus.png'>

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



<h2 id="dropdownmenu-expanded-ondismissrequest-modifier-offset-scrollstate-properties-content">DropdownMenu</h2>

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


```kotlin
@Composable
expect fun DropdownMenu(
    expanded: Boolean,
    onDismissRequest: () -> Unit,
    modifier: Modifier = Modifier,
    offset: DpOffset = DpOffset(0.dp, 0.dp),
    scrollState: ScrollState = rememberScrollState(),
    properties: PopupProperties = DefaultMenuProperties,
    content: @Composable ColumnScope.() -> Unit,
)
```


#### Parameters

| | |
| --- | --- |
| expanded | whether the menu is expanded or not |
| onDismissRequest | called when the user requests to dismiss the menu, such as by tapping outside the menu's bounds |
| modifier | `Modifier` to be applied to the menu's content |
| offset | `DpOffset` from the original position of the menu. The offset respects the `LayoutDirection`, so the offset's x position will be added in LTR and subtracted in RTL. |
| scrollState | a `ScrollState` to used by the menu's content for items vertical scrolling |
| properties | `PopupProperties` for further customization of this popup's behavior |
| content | the content of this dropdown menu, typically a `DropdownMenuItem` |




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


> **Deprecated** Replaced by a DropdownMenu function with a ScrollState parameter



<hr class="docs-overload-divider">


<h2 id="dropdownmenu-expanded-ondismissrequest-modifier-offset-properties-content">DropdownMenu</h2>

```kotlin
@Composable
fun DropdownMenu(
    expanded: Boolean,
    onDismissRequest: () -> Unit,
    modifier: Modifier = Modifier,
    offset: DpOffset = DpOffset(0.dp, 0.dp),
    properties: PopupProperties = PopupProperties(focusable = true),
    content: @Composable ColumnScope.() -> Unit,
) =
    DropdownMenu(
        expanded = expanded,
        onDismissRequest = onDismissRequest,
        modifier = modifier,
        offset = offset,
        scrollState = rememberScrollState(),
        properties = properties,
        content = content,
    )
```




<hr class="docs-overload-divider">


<h2 id="dropdownmenu-expanded-ondismissrequest-modifier-offset-scrollstate-properties-content-2">DropdownMenu</h2>

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


```kotlin
@Composable
actual fun DropdownMenu(
    expanded: Boolean,
    onDismissRequest: () -> Unit,
    modifier: Modifier,
    offset: DpOffset,
    scrollState: ScrollState,
    properties: PopupProperties,
    content: @Composable ColumnScope.() -> Unit,
)
```