ExposedDropdownMenuBox

Box for Exposed Dropdown Menu.

Source set: Common

Added in 1.11.0-rc01

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

Parameters

expanded Whether Dropdown Menu should be expanded or not.
onExpandedChange Executes when the user clicks on the ExposedDropdownMenuBox.
modifier The modifier to apply to this layout
content The content to be displayed inside ExposedDropdownMenuBox.