SnackbarHost( modifier = Modifier.align(Alignment.BottomCenter), hostState = snackbarHostState, snackbar = { snackbarData: SnackbarData -> Card( shape = RoundedCornerShape(8.dp), border = BorderStroke(2.dp, Color.White), modifier = Modifier .padding(16.dp) .wrapContentSize() ) { Column( modifier = Modifier.padding(8.dp), verticalArrangement = Arrangement.spacedBy(4.dp), horizontalAlignment = Alignment.CenterHorizontally ) { Icon(imageVector = Icons.Default.Notifications, contentDescription = "") Text(text = snackbarData.message) } } } )