Skip to content

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.

ShowSnackbarOptions

string

The snackbar’s key, for closeSnackbar.

useEffect(() => {
const key = showSnackbar({ variant: 'info', title: 'Waiting for a decision', autoHideDuration: null });
return () => closeSnackbar(key);
}, []);