SnackbarHost

fun SnackbarHost(state: SnackbarHostState, modifier: Modifier = Modifier, canSwipeToDismiss: Boolean = true, content: @Composable (SnackbarData) -> Unit = { Snackbar(it) })

Host for Snackbars to be shown.

Parameters

state

state of the SnackbarHost

modifier

modifier to be applied to the SnackbarHost

canSwipeToDismiss

flag of can be dismissed by swipe of the current SnackbarHost

content

content of the SnackbarHost