Skip to content
+

Snackbar

The Snackbar component informs users that an action has been or will be performed by the app.

useSnackbar API

Import

import { useSnackbar } from '@mui/base/useSnackbar';
// or
import { useSnackbar } from '@mui/base';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

autoHideDuration

disableWindowBlurListener

onClose

open

resumeHideDuration

Return value

getRootProps

onClickAway