Jenga Dropdown Menu Item
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.
on Click
called when the item is tapped.
modifier
the Modifier for this item.
leading Icon
optional leading icon (inherits content color).
enabled
whether the item is interactive.
supporting Text
optional line under the label.
tone
the item tone; see JengaDropdownMenuItemTone.
text Style
the label text style.
min Height
the minimum item height; defaults to the theme's value, else JengaDropdownMenuDefaults.ItemMinHeight.
content Padding
padding inside the item.
colors
the color set; defaults to JengaDropdownMenuDefaults.itemColors.