Skip to content
+

Snackbar

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

Snackbar API

Import

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

Props

Props of the native component are also available.

autoHideDuration

disableWindowBlurListener

exited

onClose

open

resumeHideDuration

slotProps

slots


The ref is forwarded to the root element.

CSS

.null-root


You can override the style of the component using one of these customization options:

Slots

To learn how to customize the slot, check out the Overriding component structure guide.

root