ExposedDropdownMenuBox
Material Design Exposed Dropdown Menu.
Menus display a list of choices on a temporary surface. They appear when users interact with a button, action, or other control.
Exposed dropdown menus, sometimes also called "spinners" or "combo boxes", display the currently selected item in a text field to which the menu is anchored. In some cases, it can accept and display user input (whether or not it’s listed as a menu choice), in which case it may be used to implement autocomplete.
The ExposedDropdownMenuBox is expected to contain a TextField (or OutlinedTextField) and ExposedDropdownMenu as content. The menuAnchor modifier should be passed to the text field.
An example of a read-only Exposed Dropdown Menu:
Parameters
whether the menu is expanded or not
called when the exposed dropdown menu is clicked and the expansion state changes.
the Modifier to be applied to this ExposedDropdownMenuBox
the content of this ExposedDropdownMenuBox, typically a TextField and an ExposedDropdownMenu.