Compose Component

ExposedDropdownMenuBox

Material Design exposed dropdown menu Menus display a list of choices on a temporary surface.

ExposedDropdownMenuBox social preview

ExposedDropdownMenuBox

Source set: Common
@Composable
public fun ExposedDropdownMenuBox(
    expanded: Boolean,
    onExpandedChange: (Boolean) -> Unit,
    modifier: Modifier = Modifier,
    content: @Composable ExposedDropdownMenuBoxScope.() -> Unit,
)

Parameters

expanded whether the menu is expanded or not
onExpandedChange called when the exposed dropdown menu is clicked and the expansion state changes.
modifier the Modifier to be applied to this ExposedDropdownMenuBox
content the content of this ExposedDropdownMenuBox, typically a TextField and an ExposedDropdownMenu.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: