Snackbar

fun Snackbar(data: SnackbarData, modifier: Modifier = Modifier, cornerRadius: Dp = SnackbarDefaults.CornerRadius, colors: SnackbarColors = SnackbarDefaults.snackbarColors(), insideMargin: PaddingValues = SnackbarDefaults.InsideMargin)

A Snackbar is a temporary message that appears at the bottom of the screen.

Parameters

data

data of the Snackbar

modifier

modifier to be applied to the Snackbar

cornerRadius

corner radius of the Snackbar

colors

colors of the Snackbar

insideMargin

margin inside the Snackbar