Stylish Exposed Dropdown Menu Box
fun StylishExposedDropdownMenuBox(expanded: Boolean, onExpandedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, content: @Composable ExposedDropdownMenuBoxScope.() -> Unit)
A box that anchors an exposed dropdown menu to a text field, wrapping the Material 3 ExposedDropdownMenuBox.
Place a text field (with ExposedDropdownMenuBoxScope.menuAnchor) and a StylishExposedDropdownMenu inside content. The box tracks the field's bounds, positions the menu below it, and constrains the menu's width to the field and its height to the visible window.
Parameters
expanded
Whether the menu is currently shown.
on Expanded Change
Called when the menu's expansion state changes (e.g. the anchor is tapped or the menu is dismissed).
modifier
Modifier applied to the box root.
content
The box content: typically a text field and a StylishExposedDropdownMenu, in ExposedDropdownMenuBoxScope for access to ExposedDropdownMenuBoxScope.menuAnchor.