Stylish Dropdown Menu
A dropdown menu that shows a list of choices on a temporary surface, wrapping the Material 3 DropdownMenu with Stylish defaults.
Populate the menu with StylishDropdownMenuItem (or any other content) and anchor it to a trigger by placing both inside the same composable. Control expanded and dismiss via onDismissRequest; the typical pattern is to dismiss when the anchor is tapped again, an item is selected, or the user taps outside.
Parameters
Whether the menu is currently shown.
Called when the user requests dismissal, such as by tapping outside the menu bounds.
Modifier applied to the menu content.
DpOffset from the original position of the menu. Defaults to DpOffset.Zero.
PopupProperties for further customization of the popup behavior. Defaults to a focusable popup.
Shape of the menu surface. Defaults to MaterialTheme.shapes.extraSmall.
Background color of the menu. Defaults to MaterialTheme.colorScheme.surfaceContainer.
The menu content, typically one or more StylishDropdownMenuItems, laid out in a ColumnScope.