SnackbarSparkVisuals
constructor(message: String, icon: SparkIcon? = null, intent: SnackbarIntent = SnackbarDefaults.intent, style: SnackbarStyle = SnackbarDefaults.style, actionLabel: String? = null, withDismissAction: Boolean = false, actionOnNewLine: Boolean = false, duration: SnackbarDuration = SnackbarDuration.Short)
Parameters
message
text to be shown in the Snackbar
icon
optional icon to show on the start side of the Snackbar
intent
background color, note that the surfaceInverse one is not available with the Tinted style
style
style of the Snackbar, Tinted as a lower emphasis than the Filled style
actionLabel
action label to show as button in the Snackbar
withDismissAction
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
duration
shown duration of the Snackbar, will adapt for a11y context