ExposedDropdownMenuBox

Menus display a list of choices on a temporary surface.

ExposedDropdownMenuBox preview
RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

ExposedDropdownMenuBox

Common
@ExperimentalMaterial3Api
@Composable
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]ExposedDropdownMenuBoxScope.ExposedDropdownMenu.