MenuDefaults

Contains default values used for DropdownMenu and DropdownMenuItem.

Properties

Link copied to clipboard
@get:Composable
val containerColor: Color

The default container color for a menu.

Link copied to clipboard

Default padding used for DropdownMenuItem.

Link copied to clipboard

The default shadow elevation for a menu.

Link copied to clipboard
@get:Composable
val shape: Shape

The default shape for a menu.

Link copied to clipboard

The default tonal elevation for a menu.

Functions

Link copied to clipboard
@Composable
fun itemColors(): MenuItemColors
@Composable
fun itemColors(textColor: Color = Color.Unspecified, leadingIconColor: Color = Color.Unspecified, trailingIconColor: Color = Color.Unspecified, disabledTextColor: Color = Color.Unspecified, disabledLeadingIconColor: Color = Color.Unspecified, disabledTrailingIconColor: Color = Color.Unspecified): MenuItemColors

Creates a MenuItemColors that represents the default text and icon colors used in a DropdownMenuItemContent.