SnackbarSparkVisuals

constructor(message: String, intent: SnackbarIntent = SnackbarDefaults.intent, title: String? = null, icon: SparkIcon? = null, actionLabel: String? = null, withDismissAction: Boolean = false, duration: SnackbarDuration = SnackbarDuration.Short)(source)

Parameters

message

The primary text message to be displayed.

intent

The SnackbarIntent which defines the colour and icon of the Snackbar. Defaults to SnackbarIntent.Info.

title

An optional title to be displayed above the message.

icon

An optional icon to override the default intent icon.

actionLabel

Optional text for the action button.

withDismissAction

a boolean to show a dismiss action in the Snackbar. This is

duration

shown duration of the Snackbar, will adapt for a11y context.