button

@Composable
fun button(text: String? = null, textStyle: TextStyle = MaterialTheme.typography.button, @StringRes res: Int? = null, onClick: () -> Unit = {})

Adds a button which is always enabled to the bottom of the dialog. This should only be used for neutral actions.

Parameters

text

the string literal text shown in the button

res

the string resource text shown in the button

onClick

a callback which is called when the button is pressed