ShowSnackbarOptions
ShowSnackbarOptions =
object
Options of showSnackbar.
Properties
Section titled “Properties”autoHideDuration?
Section titled “autoHideDuration?”
optionalautoHideDuration?:number|null
Milliseconds before the snackbar hides on its own; null keeps it until it is closed. Defaults to 3000.
buttonLabel?
Section titled “buttonLabel?”
optionalbuttonLabel?:string
Label of the action button, which shows only together with onButtonClick.
close?
Section titled “close?”
optionalclose?:boolean
Whether to show the close button. Defaults to true.
optionalkey?:string
Makes the snackbar unique: while one with this key is shown, queued or still closing, showing it again does nothing. Without a key, every call shows a new snackbar.
onButtonClick?
Section titled “onButtonClick?”
optionalonButtonClick?: () =>void
Called when the action button is pressed; the snackbar closes after it.
Returns
Section titled “Returns”void
onClose?
Section titled “onClose?”
optionalonClose?: () =>void
Called when the person closes the snackbar with the close button, not when it hides on its own or closeSnackbar closes it.
Returns
Section titled “Returns”void
subtitle?
Section titled “subtitle?”
optionalsubtitle?:string
Shown as given, below the title.
title:
string
Shown as given: translate it before passing it in.
variant
Section titled “variant”variant:
SnackbarVariant
Visual style of the @workflowbuilder/ui Snackbar.