JengaDropdownMenuItem

fun JengaDropdownMenuItem(text: String, onClick: () -> Unit, modifier: Modifier = Modifier, leadingIcon: @Composable () -> Unit? = null, enabled: Boolean = true, supportingText: String? = null, tone: JengaDropdownMenuItemTone = JengaDropdownMenuItemTone.Default, textStyle: TextStyle = JengaDropdownMenuDefaults.itemTextStyle, minHeight: Dp = JengaTheme.components.dropdownMenu?.itemMinHeight ?: JengaDropdownMenuDefaults.ItemMinHeight, contentPadding: PaddingValues = JengaDropdownMenuDefaults.itemContentPadding, colors: JengaDropdownMenuItemColors = JengaDropdownMenuDefaults.itemColors())(source)

A single item in a JengaDropdownMenu. A disabled item stays visible and can explain itself through supportingText (e.g. why the action is unavailable).

Parameters

text

the item label.

onClick

called when the item is tapped.

modifier

the Modifier for this item.

leadingIcon

optional leading icon (inherits content color).

enabled

whether the item is interactive.

supportingText

optional line under the label.

tone

the item tone; see JengaDropdownMenuItemTone.

textStyle

the label text style.

minHeight

the minimum item height; defaults to the theme's value, else JengaDropdownMenuDefaults.ItemMinHeight.

contentPadding

padding inside the item.

colors

the color set; defaults to JengaDropdownMenuDefaults.itemColors.