StylishDropdownMenuItem

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.

onClick

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.

leadingIcon

Optional icon shown before the label.

trailingIcon

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.

See also