showSnackbar
showSnackbar(
__namedParameters):string
Shows a snackbar in the editor’s own stack, at the bottom centre with the SDK’s snackbars, so
they line up instead of covering each other. It needs a mounted <WorkflowBuilder.Root>; before
that it shows nothing.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”string
The snackbar’s key, for closeSnackbar.
Example
Section titled “Example”useEffect(() => { const key = showSnackbar({ variant: 'info', title: 'Waiting for a decision', autoHideDuration: null }); return () => closeSnackbar(key);}, []);