SettingsMenu

fun SettingsMenu(modifier: Modifier = Modifier, icon: Painter? = null, iconTint: Color = LocalContentColor.current, iconSize: Dp = 24.dp, text: String? = null, textPaddingValues: PaddingValues = PaddingValues(horizontal = 16.dp), action: @Composable RowScope.() -> Unit = {})

Represents the settings menu that displays the icon, text, and action.

Since

1.0.0-beta.1

Parameters

modifier

The modifier to be applied to the view.

icon

The icon to display in the menu. Defaults to null.

iconTint

The tint color for the icon. Defaults to LocalContentColor.current.

iconSize

The size of the icon. Defaults to 24.dp.

text

The text to display in the menu. Defaults to null.

textPaddingValues

The padding values for the text. Defaults to PaddingValues(start = 16.dp).

action

The handler for when the menu is clicked. Defaults to an empty lambda.