DropdownMenuItem
Material Design dropdown menu item.
Menus display a list of choices on a temporary surface. They appear when users interact with a button, action, or other control.

Parameters
text of the menu item
called when this menu item is clicked
the Modifier to be applied to this menu item
optional leading icon to be displayed at the beginning of the item's text
optional trailing icon to be displayed at the end of the item's text. This trailing icon slot can also accept Text to indicate a keyboard shortcut.
controls the enabled state of this menu item. When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.
the padding applied to the content of this menu item
the MutableInteractionSource representing the stream of Interactions for this menu item. You can create and pass in your own remembered instance to observe Interactions and customize the appearance / behavior of this menu item in different states.
Material Design dropdown menu item.
Menus display a list of choices on a temporary surface. They appear when users interact with a button, action, or other control.

Parameters
text of the menu item
whether this item is selected or not
called when this menu item is clicked
the Modifier to be applied to this menu item
optional trailing icon to be displayed at the end of the item's text
controls the enabled state of this menu item. When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.
the padding applied to the content of this menu item
the MutableInteractionSource representing the stream of Interactions for this menu item. You can create and pass in your own remembered instance to observe Interactions and customize the appearance / behavior of this menu item in different states.
Material Design dropdown menu item.
Menus display a list of choices on a temporary surface. They appear when users interact with a button, action, or other control.

Parameters
text of the menu item
whether this item is checked or not
callback to be invoked when the item is clicked. therefore the change of checked state in requested.
the Modifier to be applied to this menu item
optional trailing icon to be displayed at the end of the item's text
controls the enabled state of this menu item. When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.
the padding applied to the content of this menu item
the MutableInteractionSource representing the stream of Interactions for this menu item. You can create and pass in your own remembered instance to observe Interactions and customize the appearance / behavior of this menu item in different states.
Deprecated
DropdownMenuItem is now scoped and can't be used as a Standalone component, migrate to the variant that has DropdownMenuItemColumnScope as a receiver
Replace with
DropdownMenuItemColumnScope.DropdownMenuItem(text, onClick, modifier, leadingIcon, trailingIcon, enabled, contentPadding, interactionSource)Material Design dropdown menu item.
Menus display a list of choices on a temporary surface. They appear when users interact with a button, action, or other control.

Parameters
text of the menu item
called when this menu item is clicked
the Modifier to be applied to this menu item
optional leading icon to be displayed at the beginning of the item's text
optional trailing icon to be displayed at the end of the item's text. This trailing icon slot can also accept Text to indicate a keyboard shortcut.
controls the enabled state of this menu item. When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.
the padding applied to the content of this menu item
the MutableInteractionSource representing the stream of Interactions for this menu item. You can create and pass in your own remembered instance to observe Interactions and customize the appearance / behavior of this menu item in different states.