Stylish Dropdown Menu Item
fun StylishDropdownMenuItem(text: @Composable () -> Unit, onClick: () -> Unit, modifier: Modifier = Modifier, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, enabled: Boolean = true)
A single selectable row inside a StylishDropdownMenu, wrapping the Material 3 DropdownMenuItem.
Parameters
text
The item's label, typically a Text composable.
on Click
Called when the item is tapped. The caller is responsible for dismissing the enclosing menu and applying the selection.
modifier
Modifier applied to the menu item.
leading Icon
Optional icon shown before the label.
trailing Icon
Optional content shown after the label (an icon or a keyboard-shortcut hint such as Text("Ctrl+K")).
enabled
When false, the item ignores pointer input and renders visually disabled.