Snackbar

A component used to show a floating notification to the user.

SnackbarHostState controls the showing & dismissal of snackbars.

Compose Multiplatform

Show Action & Check for Results

An Action button can be enabled on the snackbar.

When the user clicks on the Action button, showSnackbar() will return ActionPerformed instead of Dismissed.

Compose Multiplatform

Snackbar Customizations

Snackbar's display duration and dismiss action can also be customized.

Compose Multiplatform