← Back to Material Compose
ExposedDropdownMenuBox
Component
in
Material
. Since 1.1.0Overview
Code Examples
Material Design Exposed Dropdown Menu(https://material.io/components/menus#exposed-dropdown-menu).
Box for Exposed Dropdown Menu. Expected to contain TextField and ExposedDropdownMenuBoxScope.ExposedDropdownMenu as a content.
An example of read-only Exposed Dropdown Menu:
Overloads
ExposedDropdownMenuBox
@ExperimentalMaterialApi
@Composable
fun ExposedDropdownMenuBox(
expanded: Boolean,
onExpandedChange: (Boolean) -> Unit,
modifier: Modifier = Modifier,
content: @Composable ExposedDropdownMenuBoxScope.() -> Unit
)
Parameters
Name | Description |
---|---|
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 |