SnackbarVisuals

@Stable
interface SnackbarVisuals

Interface to represent the visuals of one particular Snackbar as a piece of the SnackbarData.

Properties

Link copied to clipboard
abstract val actionLabel: String?

optional action label to show as button in the Snackbar

Link copied to clipboard

duration of the Snackbar

Link copied to clipboard
abstract val message: String

text to be shown in the Snackbar

Link copied to clipboard

a boolean to show a dismiss action in the Snackbar. This is recommended to be set to true better accessibility when a Snackbar is set with a SnackbarDuration.Indefinite